is_existing_dir: Checks if the path refers to an existing directory.

View source: R/filesystem.R

is_existing_dirR Documentation

Checks if the path refers to an existing directory.

Description

Checks if the path refers to an existing directory.

Usage

is_existing_dir(path, allow_null = FALSE)

Arguments

path

the value to check

allow_null

if TRUE, allow the value NULL. If FALSE (default) do not allow NULL.

Examples

## Not run: 
# For assertion
assertthat::assert_that(qscheck::is_existing_dir(f))
# For check
if (qscheck::is_existing_dir(f)) {}

## End(Not run)



AstraZeneca/qscheck documentation built on Nov. 1, 2023, 4:45 a.m.