powered by
Simplify file paths by dropping .. and //
simplePath(path)
Simplified paths as strings
single or multiple file or dir paths as strings.
if (FALSE) { path <- c("ds/asf.t","gege/../jjj.r") NMsim:::simplePath(path) }
Run the code above in your browser using DataLab