This is a helper function used by extractModelSummaries and extractModelParameters. It determines whether the target is a single file or a directory. If it is a directory, all .out files are returned (perhaps recursively) It also permits the files to be filtered using a certain regular expression.
getOutFileList(target, recursive = FALSE, filefilter, pathfilter)
A character vector of the output files
The target file or directory
A logical value whether to search recursively.
Defaults to FALSE
.
A PCRE regular expression passed to grep
used to filter the output files based on their file names
A PCRE regular expression passed to grep
used to filter the output files based on their absolute paths