Learn R Programming

vmTools (version 1.0.1)

clean_path: Wrapper utility for sanitizing file.path(...) output

Description

Wrapper utility for sanitizing file.path(...) output

Usage

clean_path(..., normalize = TRUE, mustWork = FALSE)

Value

[chr] full file paths with consistent platform-specific structure

Arguments

...

[chr] paths passed to file.path()

normalize

[lgl] pass path to normalizePath()?

mustWork

[lgl] passed to normalizePath()

Examples

Run this code
clean_path(tempdir(), "/some/other/path/") # build a single path like file.path
clean_path(c(".", tempdir(), "/some/other/path/")) # vectorized

Run the code above in your browser using DataLab