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

View source: R/clean_path.R

clean_pathR Documentation

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

Description

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

Usage

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

Arguments

...

[chr] paths passed to file.path()

normalize

[lgl] pass path to normalizePath()?

mustWork

[lgl] passed to normalizePath()

Value

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

Examples

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

vmTools documentation built on Aug. 8, 2025, 7:28 p.m.