is_writeable {msgr} | R Documentation |
Checks whether the variable is a path to an existing, writeable file or directory
is_writeable(x)
x |
(any) The object to test |
TRUE if x is a path to an existing, writeable file or directory, FALSE otherwise
tmpfile <- tempfile()
file.create(tmpfile)
is_writeable(tmpfile)
is_writeable("/does/not/exist.txt")
is_writeable(1)