path_abs: Normalized, absolutized paths

Description Usage Arguments Details Value Examples

View source: R/abs.R

Description

Return a normalized absolutized version of the pathname path. On most platforms, this is equivalent to calling the function path_norm as follows: path_norm(file.path(getwd(), path)).

Usage

1
path_abs(path)

Arguments

path

Character vector.

Details

Note that unlike normalizePath, the absolute path need not exist yet.

Value

Character vector.

Examples

1
path_abs(c("foo/bar", "foo/..", "/root/dir"))

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