check_path: Check paths for portability

Description Usage Arguments Value Examples

View source: R/paths.R

Description

Check paths for a variety of maladies

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
is_path_portable(path, parent = ".")

check_path_is_portable(path, parent = ".", strict = TRUE)

check_path_is_portable_shim(path, parent = ".", strict = TRUE, ...)

check_path_absolute(path, strict = TRUE)

check_path_absolute_shim(path, strict = TRUE, ...)

check_path(path, parent = ".", strict = TRUE)

Arguments

path

a vector of paths

parent

The parent path.

strict

logical indicating whether you want to stop on errors

...

For behind the scenes behavior by fertile. Please ignore.

Value

A logical vector

Examples

1
2
3
4
5
6
7
is_path_portable(c(tempfile(), "~/.Rprofile", "../data.csv"))
## Not run: 
check_path(tempfile())

## End(Not run)
check_path(tempfile(), strict = FALSE)
check_path(c("data.csv", "~/.Rprofile"), strict = FALSE)

beanumber/fertile documentation built on April 17, 2021, 4:33 a.m.