sanitizePath: Sanitize a path

Description Usage Arguments Value

View source: R/sanitizePath.R

Description

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

Usage

1
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.


tudo-r/BatchJobs documentation built on Dec. 1, 2017, 4:02 a.m.