Description Usage Arguments Value Author(s) References See Also Examples
See recomposePath
.
1 2 | ## S4 method for signature 'DecomposedPath.S3'
recomposePath(path, shortform = FALSE, ...)
|
path |
|
shortform |
|
... |
Further arguments to be passed to subsequent functions/methods. |
character
. Vector of paths (directories and/or
files).
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 19 20 21 22 23 24 25 | ## Not run:
path <- c(
"dir_b/sub_1",
"dir_b/sub_1/",
"dir_b/sub_1/file.txt",
"dir_b/sub_1/file.txt/",
"dir_b/sub_1/notthere.txt",
"dir_b/sub_1/notthere.txt/",
"dir_b/noext",
"dir_b/noext/",
"dir_b/noext/file.txt",
"dir_b/noext/file.txt/",
"dir_b/noext/notthere.txt",
"dir_b/noext/notthere.txt/"
)
path_dec <- decomposePath(path = path)
path_rec <- recomposePath(path = path_dec)
identical(path_rec, standardizePath(path))
path_rec <- recomposePath(path = path_dec, shortform = TRUE)
identical(path_rec, gsub("/$", "", path))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.