Revision 0808cccd065a352f040da3e14e8fbd4f2ec2427c authored by pat-s on 11 December 2019, 14:08:00 UTC, committed by pat-s on 11 December 2019, 14:08:00 UTC
1 parent c2f2bf6
cache_helpers.R
#' @title Get or delete mlr cache directory
#'
#' @description Helper functions to deal with mlr caching.
#' @name cache_helpers
#' @rdname cache_helpers
#' @details
#' `getCacheDir()` returns the default mlr cache directory \cr
#' `deleteCacheDir()` clears the default mlr cache directory. Custom cache
#' directories must be deleted by hand.
NULL
#' @rdname cache_helpers
#' @export
getCacheDir = function() {
rappdirs::user_cache_dir("mlr", "mlr-org")
}
#' @rdname cache_helpers
#' @export
deleteCacheDir = function() {
unlink(rappdirs::user_cache_dir("mlr", "mlr-org"), recursive = TRUE)
catf("Successfully cleared directory '%s'.", rappdirs::user_cache_dir("mlr", "mlr-org"))
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...