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

Description Usage Arguments Value Examples

Description

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

Usage

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

Examples

1

Example output



assertive.files documentation built on May 2, 2019, 1:29 p.m.