file.issymlink: is the file a symbolic link?

Description Usage Arguments Value Note Author(s) Examples

Description

is the file a symbolic link?

Usage

1

Arguments

f

the path to file name(s)

Value

a logical vector

Note

This only works on unix-alikes, ie not windows.

Author(s)

Mark Cowley, 2012-07-16

Examples

1
2
3
4
5
6
7
f1 <- tempfile()
writeLines(letters, f1)
f2 <- tempfile()
file.symlink(f1, f2)
file.issymlink(c(f1, f2))
# [1] FALSE  TRUE
unlink(c(f1, f2))

drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.