Skip to content

clear_cache removes logfile, which causes errors when the cache tries to write to it #196

@dshemetov

Description

@dshemetov

This works

epidatr::set_cache(here::here("cache", "epidatr"), confirm = FALSE)
epidatr::clear_cache(cache_dir = here::here("cache", "epidatr"), confirm = FALSE)
epidatr::pub_covidcast(
      "hhs",
      "confirmed_admissions_influenza_1d",
      "state",
      "day",
      "*",
      epirange(20230901, 20230910),
      as_of = 20230901
    )

but this doesn't

epidatr::set_cache(here::here("cache", "epidatr"), confirm = FALSE)
epidatr::clear_cache()
epidatr::pub_covidcast(
      "hhs",
      "confirmed_admissions_influenza_1d",
      "state",
      "day",
      "*",
      epirange(20230901, 20230910),
      as_of = 20230901
    )

and it would be nice if it did. Not sure if we can somehow automatically pass the same previous-cache args over to clear_cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions