Learn R Programming

NMsim (version 0.2.1)

simplePath: Simplify file paths by dropping .. and //

Description

Simplify file paths by dropping .. and //

Usage

simplePath(path)

Value

Simplified paths as strings

Arguments

path

single or multiple file or dir paths as strings.

Examples

Run this code
if (FALSE) {
path <- c("ds/asf.t","gege/../jjj.r")
NMsim:::simplePath(path)
}

Run the code above in your browser using DataLab