path_is_abs: Test for absolute paths

Description Usage Arguments Value Examples

View source: R/is_abs.R

Description

On Unix, that means it begins with a slash, on Windows that it begins with a (back)slash after chopping off a potential drive letter. On Windows, UNC paths are considered to be absolute paths.

Usage

1

Arguments

path

Character vector of absolute paths.

Value

Logical vector.

Examples

1
path_is_abs(c("/foo/bar/", "./relative", "../me/too", "and/me"))

richfitz/pathr documentation built on May 27, 2019, 8:22 a.m.