normalizeAgainst: Normalize File Paths Against a Different Directory

normalizeAgainstR Documentation

Normalize File Paths Against a Different Directory

Description

Convert file paths to canonical form, using a different working directory. By default, the different working directory would be the executing script's directory.

Usage

normalizeAgainst(..., n = 0, against = this.dir(verbose = FALSE, n = n + 1))

Arguments

...

arguments passed to normalizePath().

n

argument passed to this.dir().

against

character string (or possibly NULL). The directory against which file paths will be normalized.

Details

When against is a character string, the working directory is changed to against, then the paths are normalized, and then the working directory is changed back to its previous value.

Value

A character vector, see normalizePath.


ArcadeAntics/essentials documentation built on Nov. 7, 2024, 4:33 p.m.