View source: R/clean_path_name.R
clean_path_name | R Documentation |
Function to clean paths to surely have a tailing slash or not.
clean_path_name(pathname, remove.slash = FALSE)
pathname |
A character string. A path name to be cleaned (to have a tailing slash or not). |
remove.slash |
(boolean) Default: FALSE. Should the result contain the tailing slash or remove it? |
The result is the input but with an tailing slash.
# Both function calls will return "home/test/"
clean_path_name("home/test")
clean_path_name("home/test/")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.