is_writeable {msgr}R Documentation

Checks whether the variable is a path to an existing, writeable file or directory

Description

Checks whether the variable is a path to an existing, writeable file or directory

Usage

is_writeable(x)

Arguments

x

(any) The object to test

Value

TRUE if x is a path to an existing, writeable file or directory, FALSE otherwise

Examples

tmpfile <- tempfile()
file.create(tmpfile)

is_writeable(tmpfile)

is_writeable("/does/not/exist.txt")
is_writeable(1)


[Package msgr version 1.1.2 Index]