is_readable {msgr} | R Documentation |
Checks whether the variable is a path to an existing, readable file or directory
Description
Checks whether the variable is a path to an existing, readable file or directory
Usage
is_readable(x)
Arguments
x |
(any) The object to test |
Value
TRUE if x is a path to an existing, readable file or directory, FALSE otherwise
Examples
tmpfile <- tempfile()
file.create(tmpfile)
is_readable(tmpfile)
is_readable("/does/not/exist.txt")
is_readable(1)
[Package msgr version 1.1.2 Index]