path.split | R Documentation |
Split the path to a file into components in a platform-DEPENDENT way.
path.split(path)
path.split.1(path)
path.unsplit(...)
path |
character vector. |
... |
character vectors, or one list of character vectors. |
for path.split()
, a list of character vectors.
for path.split.1()
and path.unsplit()
, a character vector.
path.unsplit()
is NOT the same as path.join()
.
path <- c(
NA,
"",
paste0("https://raw.githubusercontent.com/ArcadeAntics/PACKAGES/",
"src/contrib/Archive/this.path/this.path_1.0.0.tar.gz"),
"//host/share/path/to/file",
"//host/share/",
"//host//share",
"/path/to/file",
"~/path/to/file",
"path/to/file",
## paths with character encodings
`Encoding<-`("path/to/fil\xe9", "latin1"),
"/home/iris/Documents/\u03b4.R"
)
print(x <- path.split(path))
print(path.unsplit(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.