cmd_error_if_missing {cmdfun} | R Documentation |
Check that file(s) exist, error if not
Description
Check that file(s) exist, error if not
Usage
cmd_error_if_missing(files)
Arguments
files |
list or vector of paths to check |
Value
nothing or error message for each missing file
Examples
cmd_error_if_missing(tempdir())
## Not run:
# Throws error if file doesn't exist
cmd_error_if_missing(file.path(tempdir(), "notreal"))
## End(Not run)
[Package cmdfun version 1.0.2 Index]