R/utils.R
cmd_error_if_missing.Rd
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
cmd_error_if_missing(tempdir()) if (FALSE) { # Throws error if file doesn't exist cmd_error_if_missing(file.path(tempdir(), "notreal")) }