is_writeable: Checks whether the variable is a path to an existing,...

Description Usage Arguments Value Examples

View source: R/predicates.R

Description

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

Usage

1

Arguments

x

(any) The object to test

Value

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

Examples

1
2
3
4
5
6
7
tmpfile <- tempfile()
file.create(tmpfile)

is_writeable(tmpfile)

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

msgr documentation built on Dec. 16, 2019, 5:41 p.m.