| cmd_error_if_missing | R Documentation |
Check that file(s) exist, error if not
cmd_error_if_missing(files)
files |
list or vector of paths to check |
nothing or error message for each missing file
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)