is_file: Are these files?

View source: R/is_file.R

is_fileR Documentation

Are these files?

Description

If at least one of the character strings is a file it returns exist as a list element set to TRUE and all of the character strings that are file names are retained and the character strings that are not file names are removed from the files character vector in the returned list. If none of the character strings is a file it returns exist as a list element set to FALSE and all of the character strings are retained in the files character vector in the returned list.

Usage

is_file(files, no_files_stop = FALSE)

Arguments

files

character vector of file names or path.

no_files_stop

logical vector of length one when set to TRUE the routine calls stop if no files are found.


rmsharp/rmsutilityr documentation built on Feb. 13, 2024, 6:01 p.m.