norm_path: Return Normalized Path

View source: R/base.R

norm_pathR Documentation

Return Normalized Path

Description

Shortcut for normalizePath(file.path(...), winslash = sep, mustWork = FALSE)

Usage

norm_path(..., sep = "/")

Arguments

...

Parts used to construct the path

sep

Path separator to be used on Windows

Value

Normalized path constructed from ...

Examples

norm_path("C:/Users/max", "a\\b", "c") # returns C:/Users/max/a/b/c
norm_path("a\\b", "c") # return <current-working-dir>/a/b/c

toscm/toscutil documentation built on Feb. 23, 2025, 2:20 p.m.