powered by
Check that file(s) exist, error if not
cmd_error_if_missing(files)
list or vector of paths to check
nothing or error message for each missing file
# NOT RUN { cmd_error_if_missing(tempdir()) # } # NOT RUN { # Throws error if file doesn't exist cmd_error_if_missing(file.path(tempdir(), "notreal")) # }
Run the code above in your browser using DataLab