path_exists: Test if path exists

Description Usage Arguments Value Examples

View source: R/exists.R

Description

Returns FALSE for broken symbolic links. On some platforms, this function may return FALSE if permission is not granted to execute the fstat system call on the requested file, even if the path physically exists.

Usage

1
2
3
path_exists(paths)

path_lexists(paths)

Arguments

paths

Vector of paths to test

Value

Logical vector.

Examples

1
path_exists(c('/tmp/foobar', tempdir(), NA))

richfitz/pathr documentation built on May 27, 2019, 8:22 a.m.