From 924b9e761498feb63ed71b17132c77d9ec8a9b33 Mon Sep 17 00:00:00 2001 From: Dmitry Shemetov Date: Fri, 29 Sep 2023 15:59:25 -0700 Subject: [PATCH 1/2] fix: cache size integer overflow --- R/cache.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ) From a7d9007eba4e6169ce940e275002ed65427e36da Mon Sep 17 00:00:00 2001 From: dshemetov Date: Fri, 29 Sep 2023 23:01:28 +0000 Subject: [PATCH 2/2] docs: document (GHA) --- man/get_api_key.Rd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }