Skip to content

Commit 6e7f0cd

Browse files
committed
1 days -> 1 day
1 parent aa6c641 commit 6e7f0cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/cache.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,11 @@ set_cache <- function(cache_dir = NULL,
168168
)
169169
}
170170

171+
rlang::inform(cli::format_inline(msg), class = "packageStartupMessage")
171172
cli::cli_inform(c(
172173
"!" = "epidatr cache is being used (set env var EPIDATR_USE_CACHE=FALSE if not intended).",
173174
"i" = "The cache directory is {cache_dir}.",
174-
"i" = "The cache will be cleared after {days} days and will be pruned if it exceeds {max_size} MB.",
175+
"i" = "The cache will be cleared after {days} day{ifelse(days>1,'s','')} and will be pruned if it exceeds {max_size} MB.",
175176
"i" = "The log of cache transactions is stored at {file.path(cache_dir, logfile)}."
176177
))
177178
}

0 commit comments

Comments
 (0)