Use dir.exists to determine whether the input path is valid and returns an error message if not.

validate_path(path)

Arguments

path

A character string specifying a path to the dataset working directory.

Value

A warning message if the path leads to a non-existant directory.