Does the input contain a directory?
Source:R/check-vector-isDirectory.R
check-vector-isDirectory.Rd
Does the input contain a directory?
Usage
isDirectory(x)
isADirectory(x, nullOk = FALSE)
allAreDirectories(x)
isDir(x)
isADir(x, nullOk = FALSE)
allAreDirs(x)
Functions
isDirectory()
: Vectorized.isADirectory()
: Scalar.allAreDirectories()
: Scalar.isDir()
: Short alias forisDirectory()
.isADir()
: Short alias forisADirectory()
.allAreDirs()
: Short alias forallAreDirectories()
.
Examples
## TRUE ====
isDirectory(c("~", "."))
#> [1] TRUE TRUE
isADirectory("~")
#> [1] TRUE
## FALSE ====
isDirectory(1L)
#> [1] FALSE