Skip to contents

Copy the approved TimeFish CSV files from a source checkout into the user cache used by the installed package. After refreshing the cache, the data access helpers read the updated snapshot automatically, so users do not need to reinstall the package.

Usage

timefish_refresh_snapshot(source_dir = NULL, tables = timefish_tables(), overwrite = TRUE)

Arguments

source_dir

Path to a local TimeFish repository checkout or to a directory that contains the three CSV files. The function looks in source_dir/inst/extdata/ first and then directly in source_dir/.

tables

Character vector with the tables to refresh. Defaults to all bundled tables.

overwrite

Whether to overwrite existing cached files.

Value

Invisibly, a list with the source directory, cache directory, and refreshed file paths.

Examples

if (FALSE) { # \dontrun{
timefish_refresh_snapshot("/path/to/timefishr")
} # }