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