Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/lasSampleCompare.R View source: R/clean_path.R
paths often have extra slashes, or in opposing directions. This function standardizes slashes
1 2 3 4 5 | clean_path(path, backslash = T, force_endslash = F)
backslash(path)
forwardslash(path)
|
path |
supply a path |
backslash |
T/F backslashes or forwardslashes? |
force_endslash |
T/F cap path with slash? |
standardizes slashes - forward or back
Revision History
1.0 | 2015 Jan 29 Roxygen header prepared |
updated path
Jacob Strunk <jstrunk@fs.fed.us>
1 2 3 4 5 6 7 | clean_path("c:\\temp",F,F)
clean_path("c:\\temp",T,F)
clean_path("c:\\temp",T,T)
clean_path("c:/temp/",F,F)
clean_path("c:\\temp\\\\",T,F)
clean_path("c:\\temp\\\\",T,T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.