relativizePath: Relativize a Path

View source: R/path.R

relativizePathR Documentation

Relativize a Path

Description

Relativizes a path.

Usage

relativizePath(x, dir = getwd(), sep = "/", ...)

Arguments

x

a file path

dir

a reference directory

sep

path separator

...

ignored arguments

Details

x and dir are first normalized, then x is expressed relative to dir. If x and dir are on different drives (i.e. C:/ D:/) x is returned as an absolute path.


bergsmat/nonmemica documentation built on Sept. 15, 2023, 9:22 a.m.