diff --git a/R/cache.R b/R/cache.R index cddd3919..d544d760 100644 --- a/R/cache.R +++ b/R/cache.R @@ -185,7 +185,7 @@ set_cache <- function(cache_dir = NULL, #' [`disable_cache`] to only disable without deleting, and [`cache_info`] #' @export #' @import cachem -clear_cache <- function(disable = FALSE, ...) { +clear_cache <- function(..., disable = FALSE) { if (any(!is.na(cache_environ$epidatr_cache))) { cache_environ$epidatr_cache$destroy() } diff --git a/man/clear_cache.Rd b/man/clear_cache.Rd index c377c612..f53148ad 100644 --- a/man/clear_cache.Rd +++ b/man/clear_cache.Rd @@ -4,12 +4,9 @@ \alias{clear_cache} \title{Manually reset the cache, deleting all currently saved data and starting afresh} \usage{ -clear_cache(disable = FALSE, ...) +clear_cache(..., disable = FALSE) } \arguments{ -\item{disable}{instead of setting a new cache, disable caching entirely; -defaults to \code{FALSE}} - \item{...}{ Arguments passed on to \code{\link[=set_cache]{set_cache}} \describe{ @@ -29,6 +26,9 @@ variable is \code{EPIDATR_CACHE_LOGFILE}.} \item{\code{confirm}}{whether to confirm directory creation. default is \code{TRUE}; should only be set in non-interactive scripts} }} + +\item{disable}{instead of setting a new cache, disable caching entirely; +defaults to \code{FALSE}} } \value{ \code{\link{NULL}} no return value, all effects are stored in the package