assert_all_are_dirs

0th

Percentile

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

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

Usage
assert_all_are_dirs(x, severity = getOption("assertive.severity", "stop"))
assert_any_are_dirs(x, severity = getOption("assertive.severity", "stop"))
is_dir(x, .xname = get_name_in_parent(x))
Arguments
x
File paths.
severity
How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".
.xname
Not intended to be used directly.
Value

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

Aliases
  • assert_all_are_dirs
  • assert_any_are_dirs
  • is_dir
Examples
library(assertive.files) assert_all_are_dirs(R.home())
Documentation reproduced from package assertive.files, version 0.0-2, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.