Description Usage Arguments Value Examples
Combines normalizePath
and
file.path
to produce normalized canonical paths
for files in a platform-independent fashion.
1 2 3 4 5 6 | normalized_file_path(
...,
fsep = .Platform$file.sep,
winslash = "\\",
mustWork = NA
)
|
... |
|
fsep |
Path separator to use (assumed to be ASCII).
See |
winslash |
Separator to be used on Windows - ignored elsewhere.
See |
mustWork |
|
character
vector of the full file paths.
See normalizePath
and file.path
.
1 2 3 4 5 | normalized_file_path("~")
normalized_file_path(".", "folder", "file.ext", mustWork = FALSE)
# compare to
normalizePath(c(".", "folder", "file.ext"), mustWork = FALSE)
file.path(".", "folder", "file.ext")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.