clean_path | R Documentation |
paths often have extra slashes, or in opposing directions. These functions standardize slashes
clean_path(path, backslash = T, force_endslash = F) backslash(path) forwardslash(path) bs() fs()
path |
supply a path |
backslash |
T/F backslashes or forwardslashes? |
force_endslash |
T/F cap path with slash? |
standardizes slashes - forward or back
This program is free software but it is provided WITHOUT WARRANTY and with ABSOLUTELY NO GUARANTEE of fitness or functionality for any purpose; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Revision History
1.0 | 2015 Jan 29 Roxygen header prepared |
updated path
Jacob Strunk <jstrunk@fs.fed.us>
grep
gsub
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.