Collect file paths based on file names without extensions
Source:R/utils.R
collect_data_list_paths.RdConstructs a list of file paths based on an input vector of file names without extensions.
Preference is given to .parquet files, if present, over .rds and
.sas7bdat files unless prefer_sas or prefer_rds is TRUE.
prefer_sas and prefer_rds are mutually exclusive.
Arguments
- sub_dir
A relative directory/folder that will be appended to a base path defined by
Sys.getenv("RXD_DATA"). If the argument is left as NULL, the function will load data from the working directorygetwd().- file_names
CDISC names for the files
- use_wd
for "use working directory" - a flag used when importing local files not on NFS - default value is FALSE
- prefer_sas
if TRUE, imports
.sas7bdatfiles first instead of.parquetand.rdsfiles- prefer_rds
if TRUE, imports
.rdsfiles first instead of.parquetand.sas7bdatfiles