Description Usage Arguments Value Author(s) References See Also Examples
See standardizePath
.
1 2 3 | ## S4 method for signature 'character'
standardizePath(path = ".", sep = c("/", "\\"),
shortform = FALSE, ...)
|
path |
|
sep |
|
shortform |
|
... |
Further arguments to be passed to subsequent functions/methods. |
matrix
with three
columns named "dirname"
, "filename"
and "extension"
.
strip_extension
returns a character vector of the second column,
and get_extension
returns a character vector of the third column.
recompose_path
returns a character vector of paths.
Janko Thyson janko.thyson@rappster.de
https://github.com/Rappster/filesystr
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
standardizePath()
path <- c(".", "./dir", "..", "../dir", "~", "~/file.txt", R.home(),
tempdir(), "nonex", "nonex/", "nonex/file.txt",
"nonex/file.txt/", "", NA)
standardizePath(path = path, sep = "\\")
try(standardizePath(path = path, sep = "notallowed"))
standardizePath(path = path, shortform = TRUE)
standardizePath(".")
standardizePath(path = character())
standardizePath(path = "")
standardizePath(path = NA_character_)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.