Skip to content

Commit f32e625

Browse files
committed
fix: rlang dependence issues
1 parent 6ea7198 commit f32e625

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ importFrom(magrittr,"%>%")
8181
importFrom(openssl,md5)
8282
importFrom(purrr,map_chr)
8383
importFrom(purrr,map_lgl)
84+
importFrom(rlang,dots_list)
85+
importFrom(rlang,inject)
8486
importFrom(stats,na.omit)
8587
importFrom(tibble,as_tibble)
8688
importFrom(tibble,tibble)

R/cache.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
205206
clear_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

0 commit comments

Comments
 (0)