Returns the location of a file from the witch-data repository for processing,
method (local) or after checking/downloading it from the DVC remote drive
(method dvc).
Usage
witch_data(
file,
version = NULL,
idir = getOption("witchtools.idir"),
method = getOption("witchtools.method"),
noCheck = getOption("witchtools.noCheck", TRUE),
repo = getOption("witchtools.witch_data_repo"),
remote = getOption("witchtools.witch_data_remote")
)
Arguments
- file
Name of the file in the with-data repository
- version
File version, only required for method piggyback (deprecated)
- idir
directory to read/download files
- method
'dvc' or 'local'.
- noCheck
don't check and download the file.
- repo
github repository name
- remote
dvc remote storage
Value
A character string with the path of the requested file in the input
data directory. With method dvc and noCheck = FALSE, the file
is pulled from the DVC remote first.
Examples
if (FALSE) { # \dontrun{
# Not run: downloads data from the witch-data repository.
witch_data("ssp/ssp_population.csv", version = "v0.0.1")
witch_data("ssp/ssp_population.csv", method = "witch-data")
witch_data("ssp/ssp_population.csv", noCheck = TRUE)
} # }