List output CSV files in a directory or directories.
get_csv_files(csv_files, numbered = TRUE)
Character vector of directories containing numbered CSV files
Logical. If TRUE
,
only list the numbered files like patients00001.csv
,
weeks00017.csv
, etc. If FALSE
, only list the non-numbered files
like simulations.csv
and simulations_freq_locf.csv
.
Avoid summary.csv
files. They are not reliable on Linux.
A character vector of names of CSV files.
facts_file <- get_facts_file_example("contin.facts")
# Can only run if system dependencies are configured:
if (file.exists(Sys.getenv("RFACTS_PATHS"))) {
out <- run_facts(
facts_file,
n_sims = 2L,
verbose = FALSE
)
get_csv_files(out)
}