Skip to contents

Converts a relative path to an absolute path. It tries really hard to create canonical paths.

Usage

path_rel2abs(path, cwd = getwd())

Arguments

path

(character(1)) Character string representing a relative path.

cwd

(character(1)) Current working directory.

Value

(character(1)) Character string representing the absolute path

Examples

path_rel2abs("..")
#> [1] "/tmp/RtmpuB671g/file4ced5b2a27bb"