powered by
Wrapper utility for sanitizing file.path(...) output
clean_path(..., normalize = TRUE, mustWork = FALSE)
[chr] full file paths with consistent platform-specific structure
[chr] paths passed to file.path()
[lgl] pass path to normalizePath()?
[lgl] passed to normalizePath()
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