check-vector-isDirectory | R Documentation |
Does the input contain a directory?
isDirectory(x)
isADirectory(x, nullOk = FALSE)
allAreDirectories(x)
isDir(x)
isADir(x, nullOk = FALSE)
allAreDirs(x)
x |
Object. |
nullOk |
|
TRUE
on success;
FALSE
on failure, with cause set.
isDirectory()
: Vectorized.
isADirectory()
: Scalar.
allAreDirectories()
: Scalar.
isDir()
: Short alias for isDirectory()
.
isADir()
: Short alias for isADirectory()
.
allAreDirs()
: Short alias for allAreDirectories()
.
Updated 2023-09-29.
dir.exists()
.
R.utils::isDirectory()
.
## TRUE ====
isDirectory(c("~", "."))
isADirectory("~")
## FALSE ====
isDirectory(1L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.