.firstFile examines the filesystem and selects the first file from the given sequence that exists on it.

.firstFile(files, modify = identity)

Arguments

files

The sequence file names or paths to consider.

modify

How to modify each file before checking existence.

Value

(Absolute) path to the first file that exists. NULL if there isn't one.