
List File Paths of RosyREDCap Projects in a Folder
Source:R/projects.R
check_folder_for_projects.Rd
Searches a specified folder for files related to RosyREDCap projects and returns their file paths. Optionally validates the folder to ensure it was previously set up using `setup_DB()`.
Value
A character vector of file paths for valid RosyREDCap project files in the folder. Returns an empty character vector if no valid files are found.
Details
This function checks a folder (and optionally validates its setup) for `.RData` files that correspond to RosyREDCap projects. It identifies files with the extension `.RData` and names ending in `_RosyREDCap`, filtering out any unrelated files.
See also
setup_DB for setting up valid directories.