List output CSV files in a directory or directories.

get_csv_files(csv_files, numbered = TRUE)

Arguments

csv_files

Character vector of directories containing numbered CSV files

numbered

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.

Value

A character vector of names of CSV files.

Examples

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)
}