getOutFileList: Get Output File List

View source: R/utilityFunctions.R

getOutFileListR Documentation

Get Output File List

Description

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.

Usage

getOutFileList(target, recursive = FALSE, filefilter, pathfilter)

Arguments

target

The target file or directory

recursive

A logical value whether to search recursively. Defaults to FALSE.

filefilter

A PCRE regular expression passed to grep used to filter the output files based on their file names

pathfilter

A PCRE regular expression passed to grep used to filter the output files based on their absolute paths

Value

A character vector of the output files


michaelhallquist/MplusAutomation documentation built on June 15, 2025, 9:48 a.m.