Creates file paths to versioned data directories based on the contents of a data_date.txt file.
Supports both here-style paths (here::here()
) and explicit paths (fs::path()
).
Usage
here_data(
...,
style = c("here", "path"),
path = getOption("path_data"),
data_folder_name = "secure_data",
path_to_data_date = here::here(),
return_date_only = FALSE
)
get_data_date(path_to_data_date = here::here())
Arguments
- ...
Additional path components to append
- style
Path style: "here" or "path"
- path
Root path (required when style="path")
- data_folder_name
Data folder name (default: "secure_data")
- path_to_data_date
Path to data_date.txt file or its directory
- return_date_only
If TRUE, only returns the date string
Value
Path string or date string (if return_date_only=TRUE)