Extract fileNames from data file(s) and add them to access.csv. The
helper validate_file_paths can be used to create vectors of
valid file paths that can be checked and then passed as data_path argument
to prep_access.
Usage
prep_access(
data_path = "data",
access_path = file.path("data", "metadata", "access.csv"),
...
)Arguments
- data_path
character vector of either:
path(s) to the data file(s).
single path to directory containing data file(s). Currently only tabular
.csvand.tsvor.rdsfiles are supported.
- access_path
path to the
access.csvfile. Defaults todata/metadata/access.csv.- ...
parameters passed to
list.files(). For example, userecursive = TRUEto list files in a folder recursively or usepatternto filter files for patterns.
Examples
if (FALSE) { # \dontrun{
# First create the metadata tempaltes
create_spice()
# Then begin filling them in from your data files
prep_access()
} # }
