checkValidFiles: Rboretum File Checker

View source: R/checkValidFiles.R

checkValidFilesR Documentation

Rboretum File Checker

Description

This function takes one or more file paths, and returns TRUE if all paths point to valid files, and FALSE otherwise. If return_full_path = TRUE and all paths are valid, function returns absolute paths. If return_invalid = TRUE and there are invalid paths, function returns invalid paths.

Usage

checkValidFiles(alignment_path, return_full_path, return_invalid)

Arguments

alignment_path

A character vector of one or more alignment file paths (relative or absolute)

return_full_path

OPTIONAL: If TRUE and all paths are valid, function returns absolute paths [Default: FALSE]

return_invalid

OPTIONAL: If TRUE and any paths are invalid, function returns invalid paths [Default: FALSE]

Value

TRUE if all paths point to valid files, otherwise FALSE. If return_full_path = TRUE and all paths are valid, function returns absolute paths. If return_invalid = TRUE and there are invalid paths, function returns invalid paths.


BobLiterman/Rboretum documentation built on July 6, 2023, 7:46 p.m.