Learn R Programming

cmdfun (version 1.0.2)

cmd_error_if_missing: 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

Run this code
# 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