check-vector-isSymlink | R Documentation |
Does the input contain a symbolic link?
isSymlink(x)
isASymlink(x, nullOk = FALSE)
allAreSymlinks(x)
x |
Object. |
nullOk |
|
Supported on Linux and macOS but not Windows.
TRUE
on success;
FALSE
on failure, with cause set.
isSymlink()
: Vectorized.
isASymlink()
: Scalar.
allAreSymlinks()
: Scalar.
Updated 2023-10-02.
file.info()
.
Sys.readlink()
.
if (!isWindows()) {
from <- "from.txt"
to <- "to.txt"
file.create(from)
file.symlink(from = from, to = to)
isSymlink(c(from, to))
unlink(c(from, to))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.