@@ -252,23 +252,20 @@ cache_epidata_call <- function(epidata_call, fetch_args = fetch_args_list()) {
252
252
if (as_of_recent || issues_recent ) {
253
253
cli :: cli_warn(
254
254
c(
255
- " using cached results with `as_of` within the past week (or the future!)." ,
256
- " This will likely result in an invalid cache. Consider\n " ,
257
- " 1. disabling the cache for this session with `disable_cache` or permanently with environmental " ,
258
- " variable `EPIDATR_USE_CACHE=FALSE`\n " ,
259
- " 2. setting `EPIDATR_CACHE_MAX_AGE_DAYS={Sys.getenv('EPIDATR_CACHE_MAX_AGE_DAYS', unset = 1)}`" ,
260
- " to e.g. `3/24` (3 hours)."
261
- ),
262
- .frequency = " regularly" ,
263
- .frequency_id = " cache timing issues" ,
264
- class = " cache_recent_data"
255
+ " Using cached results with `as_of` within the past week (or the future!).
256
+ This will likely result in an invalid cache. Consider" ,
257
+ " i" = " disabling the cache for this session with `disable_cache` or
258
+ permanently with environmental variable `EPIDATR_USE_CACHE=FALSE`" ,
259
+ " i" = " setting `EPIDATR_CACHE_MAX_AGE_DAYS={Sys.getenv('EPIDATR_CACHE_MAX_AGE_DAYS
260
+ ', unset = 1)}` to e.g. `3/24` (3 hours)."
261
+ )
265
262
)
266
263
}
267
264
if (! is.key_missing(cached )) {
268
265
cli :: cli_warn(
269
266
c(
270
- " loading from the cache at {cache_environ$epidatr_cache$info()$dir}; " ,
271
- " see {cache_environ$epidatr_cache$info()$logfile} for more details."
267
+ " Loading from the cache at {cache_environ$epidatr_cache$info()$dir};
268
+ see {cache_environ$epidatr_cache$info()$logfile} for more details."
272
269
),
273
270
.frequency = " regularly" ,
274
271
.frequency_id = " using the cache" ,
@@ -277,7 +274,6 @@ cache_epidata_call <- function(epidata_call, fetch_args = fetch_args_list()) {
277
274
return (cached [[1 ]])
278
275
}
279
276
}
280
- ' which was saved on {format(cached[[2]],"%A %B %d, %Y")}, which took {round(cached[[3]][[3]], digits=5)} seconds.'
281
277
# need to actually get the data, since its either not in the cache or we're not caching
282
278
runtime <- system.time(if (epidata_call $ only_supports_classic ) {
283
279
fetched <- fetch_classic(epidata_call , fetch_args )
0 commit comments