path.relativize: Relativize a Path versus another Path

Description Usage Arguments Details

View source: R/relativize.R

Description

Relativizes a path path versus a directory dir. Both path and dir are normalized. If dir and path identify the same object, "" is returned. Otherwise, if the returned path is appended to dir via file.path, the resulting path should identify path.

Usage

1
path.relativize(path, dir = getwd(), sep = .Platform$file.sep)

Arguments

path

the path to be normalized

dir

the reference directory to normalize against

sep

path separator

Details

Inspired by the function of the same name in the nonmemica package, see https://github.com/cran/nonmemica/blob/master/R/path.R.


thomasWeise/utilizeR documentation built on May 30, 2019, 11:48 a.m.