File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ Imports:
4545 purrr,
4646 rappdirs,
4747 readr,
48+ rlang,
4849 tibble,
4950 usethis,
5051 xml2
@@ -54,7 +55,6 @@ Suggests:
5455 knitr,
5556 mapproj,
5657 maps,
57- rlang,
5858 rmarkdown,
5959 testthat (>= 3.1.5),
6060 withr
Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ importFrom(magrittr,"%>%")
8181importFrom(openssl,md5)
8282importFrom(purrr,map_chr)
8383importFrom(purrr,map_lgl)
84+ importFrom(rlang,dots_list)
85+ importFrom(rlang,inject)
8486importFrom(stats,na.omit)
8587importFrom(tibble,as_tibble)
8688importFrom(tibble,tibble)
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ set_cache <- function(cache_dir = NULL,
170170 max_age = days * 24 * 60 * 60 ,
171171 logfile = file.path(cache_dir , logfile )
172172 )
173- cache_environ $ cache_args <- list2 (
173+ cache_environ $ cache_args <- list (
174174 cache_dir = cache_dir ,
175175 days = days ,
176176 max_size = max_size ,
@@ -202,6 +202,7 @@ set_cache <- function(cache_dir = NULL,
202202# ' [`disable_cache`] to only disable without deleting, and [`cache_info`]
203203# ' @export
204204# ' @import cachem
205+ # ' @importFrom rlang dots_list inject
205206clear_cache <- function (... , disable = FALSE ) {
206207 if (any(! is.na(cache_environ $ epidatr_cache ))) {
207208 cache_environ $ epidatr_cache $ destroy()
@@ -210,7 +211,7 @@ clear_cache <- function(..., disable = FALSE) {
210211 } else {
211212 recovered_args <- list ()
212213 }
213- args <- rlang :: dots_list(
214+ args <- dots_list(
214215 ... ,
215216 confirm = FALSE ,
216217 !!! recovered_args ,
@@ -220,7 +221,7 @@ clear_cache <- function(..., disable = FALSE) {
220221 if (disable ) {
221222 cache_environ $ epidatr_cache <- NULL
222223 } else {
223- rlang :: inject(set_cache(!!! args ))
224+ inject(set_cache(!!! args ))
224225 }
225226}
226227
You can’t perform that action at this time.
0 commit comments