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 March 19, 2026, 9:07 a.m.