absolutizePath: Absolutize a Filepath

absolutizePathR Documentation

Absolutize a Filepath

Description

Absolutizes a filepath. Somewhat the opposite of relativizePath.

Usage

absolutizePath(x, dir = getwd(), winslash = "/", ...)

Arguments

x

length one character: a file path

dir

a reference directory

winslash

path separator on windows, passed to normalizePath

...

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.


tablet documentation built on Sept. 16, 2023, 1:08 a.m.