Skip to contents

Returns a vector of WITCH results files. Inspired by witch-plot source code.

Usage

witch_results_files(
  search_path,
  restrict = "^results_",
  normalize = FALSE,
  recursive = FALSE
)

Arguments

search_path

Path where to start the search of the results files (default="^results_").

restrict

vector of filtering patterns on the file names.

normalize

if TRUE, return canonical form of the file names.

recursive

if TRUE, search also in the sub directories.

Value

A character vector with the unique names of the gdx files found in search_path whose base name matches one of the restrict patterns. Returns NULL if no file matches.

See also

witch_query.

Other WITCH helper functions: witch_query(), witch_scen_name()