is_dir: Checks whether the variable is a path to an existing...

Description Usage Arguments Value Examples

View source: R/predicates.R

Description

Checks whether the variable is a path to an existing directory

Usage

1
is_dir(x)

Arguments

x

(any) The object to test

Value

TRUE if x is a path to an existing directory, FALSE otherwise

Examples

1
2
3
is_dir(tempdir())
is_dir("/does/not/exist")
is_dir(1)

msgr documentation built on Dec. 16, 2019, 5:41 p.m.