Skip to content

Commit ee952c5

Browse files
authored
Merge pull request #197 from cmu-delphi/clear_cache_positional_args
fix: order of args in `clear_cache` positional bugs
2 parents c041a90 + d77505c commit ee952c5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

R/cache.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ set_cache <- function(cache_dir = NULL,
185185
#' [`disable_cache`] to only disable without deleting, and [`cache_info`]
186186
#' @export
187187
#' @import cachem
188-
clear_cache <- function(disable = FALSE, ...) {
188+
clear_cache <- function(..., disable = FALSE) {
189189
if (any(!is.na(cache_environ$epidatr_cache))) {
190190
cache_environ$epidatr_cache$destroy()
191191
}

man/clear_cache.Rd

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)