Learn R Programming

assertive (version 0.2-6)

assert_all_are_dirs: Is the path a directory? Checks to see if the input path is a directory.

Description

Is the path a directory? Checks to see if the input path is a directory.

Usage

assert_all_are_dirs(x)

assert_any_are_dirs(x)

is_dir(x)

Arguments

x
File paths.

Value

  • is_dir returns TRUE if and only if the input path is a directory that exists, as determined by file.info.

Examples

Run this code
assert_all_are_dirs(R.home())

Run the code above in your browser using DataLab