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

View source: R/NMsim_helpers.R

simplePathR Documentation

Simplify file paths by dropping .. and //

Description

Simplify file paths by dropping .. and //

Usage

simplePath(path)

Arguments

path

single or multiple file or dir paths as strings.

Value

Simplified paths as strings

Examples

## Not run: 
path <- c("ds/asf.t","gege/../jjj.r")
NMsim:::simplePath(path)

## End(Not run)

NMsim documentation built on Sept. 9, 2025, 5:33 p.m.