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:
45
45
purrr,
46
46
rappdirs,
47
47
readr,
48
+ rlang,
48
49
tibble,
49
50
usethis,
50
51
xml2
@@ -54,7 +55,6 @@ Suggests:
54
55
knitr,
55
56
mapproj,
56
57
maps,
57
- rlang,
58
58
rmarkdown,
59
59
testthat (>= 3.1.5),
60
60
withr
Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ importFrom(magrittr,"%>%")
81
81
importFrom(openssl,md5)
82
82
importFrom(purrr,map_chr)
83
83
importFrom(purrr,map_lgl)
84
+ importFrom(rlang,dots_list)
85
+ importFrom(rlang,inject)
84
86
importFrom(stats,na.omit)
85
87
importFrom(tibble,as_tibble)
86
88
importFrom(tibble,tibble)
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ set_cache <- function(cache_dir = NULL,
170
170
max_age = days * 24 * 60 * 60 ,
171
171
logfile = file.path(cache_dir , logfile )
172
172
)
173
- cache_environ $ cache_args <- list2 (
173
+ cache_environ $ cache_args <- list (
174
174
cache_dir = cache_dir ,
175
175
days = days ,
176
176
max_size = max_size ,
@@ -202,6 +202,7 @@ set_cache <- function(cache_dir = NULL,
202
202
# ' [`disable_cache`] to only disable without deleting, and [`cache_info`]
203
203
# ' @export
204
204
# ' @import cachem
205
+ # ' @importFrom rlang dots_list inject
205
206
clear_cache <- function (... , disable = FALSE ) {
206
207
if (any(! is.na(cache_environ $ epidatr_cache ))) {
207
208
cache_environ $ epidatr_cache $ destroy()
@@ -210,7 +211,7 @@ clear_cache <- function(..., disable = FALSE) {
210
211
} else {
211
212
recovered_args <- list ()
212
213
}
213
- args <- rlang :: dots_list(
214
+ args <- dots_list(
214
215
... ,
215
216
confirm = FALSE ,
216
217
!!! recovered_args ,
@@ -220,7 +221,7 @@ clear_cache <- function(..., disable = FALSE) {
220
221
if (disable ) {
221
222
cache_environ $ epidatr_cache <- NULL
222
223
} else {
223
- rlang :: inject(set_cache(!!! args ))
224
+ inject(set_cache(!!! args ))
224
225
}
225
226
}
226
227
You can’t perform that action at this time.
0 commit comments