sanitizePath: Sanitize a path

View source: R/sanitizePath.R

sanitizePathR Documentation

Sanitize a path

Description

Replaces backward slashes with forward slashes and optionally normalizes the path.

Usage

sanitizePath(path, make.absolute = TRUE, normalize.absolute = FALSE)

Arguments

path

[character]
Vector of paths to sanitize.

make.absolute

[logical]
If TRUE convert to an absolute path.

normalize.absolute

[logical]
Also call normalizePath on absolute paths? This will immediately resolve symlinks.

Value

character with sanitized paths.


BatchJobs documentation built on March 21, 2022, 5:05 p.m.