Learn R Programming

toscutil (version 2.8.0)

norm_path: Return Normalized Path

Description

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

Usage

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

Value

Normalized path constructed from ...

Arguments

...

Parts used to construct the path

sep

Path separator to be used on Windows

Examples

Run this code
norm_path("C:/Users/max", "a\\b", "c") # returns C:/Users/max/a/b/c
norm_path("a\\b", "c") # return /a/b/c

Run the code above in your browser using DataLab