diff --git a/R/cache.R b/R/cache.R index dda3d15f..9ff12c3d 100644 --- a/R/cache.R +++ b/R/cache.R @@ -163,7 +163,7 @@ set_cache <- function(cache_dir = NULL, } else if (cache_exists) { cache_environ$epidatr_cache <- cachem::cache_disk( dir = cache_dir, - max_size = as.integer(max_size * 1024^2), + max_size = max_size * 1024^2, max_age = days * 24 * 60 * 60, logfile = file.path(cache_dir, logfile) ) diff --git a/man/get_api_key.Rd b/man/get_api_key.Rd index 40774c66..18f7ae65 100644 --- a/man/get_api_key.Rd +++ b/man/get_api_key.Rd @@ -52,7 +52,7 @@ Delphi Epidata API Registration Form. \url{https://api.delphi.cmu.edu/epidata/admin/registration_form} } \seealso{ -\code{\link[usethis:edit]{usethis::edit_r_environ()}} to automatically edit the \code{.Renviron} -file; \code{\link[usethis:edit]{usethis::edit_r_profile()}} to automatically edit the \code{.Rprofile} +\code{\link[usethis:edit_r_environ]{usethis::edit_r_environ()}} to automatically edit the \code{.Renviron} +file; \code{\link[usethis:edit_r_profile]{usethis::edit_r_profile()}} to automatically edit the \code{.Rprofile} file }