check-vector-isFile | R Documentation |
Does the input contain a file?
isFile(x)
isAFile(x, nullOk = FALSE)
allAreFiles(x)
x |
Object. |
nullOk |
|
TRUE
on success;
FALSE
on failure, with cause set.
isFile()
: Vectorized.
isAFile()
: Scalar.
allAreFiles()
: Scalar.
Updated 2023-09-29.
file.exists()
.
R.utils::isFile()
.
## TRUE ====
x <- "example.txt"
file.create(x)
isAFile(x)
unlink(x)
## FALSE ====
isFile(c("~", "."))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.