cmd_error_if_missing: Check that file(s) exist, error if not

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Check that file(s) exist, error if not

Usage

1

Arguments

files

list or vector of paths to check

Value

nothing or error message for each missing file

Examples

1
2
3
4
5
6
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)

snystrom/dotargs documentation built on Oct. 18, 2020, 8:39 a.m.