Description Usage Arguments Details Value See Also
It tries to concatenate each argument in order from left to right
trying to emulate standard OS behaviour when user would put each argument in a separate cd
(or in R setwd(...)
) command. It also tries to be as platfrom-agnostic, as possible, treating '/' and '\' equally.
1 |
... |
character string with each directory component |
fsep |
Custom path separator. Defaults to |
This way it enhances file.path
with two features:
It understands that ..
means "go one directory up". When encountering ..
the last (the youngest)
directory so far parsed gets deleted, or nothing happens if we are already on root.
It understands when a path is absolute. Absolute path resets parsing from start with the path, just like you would expect from the command line. Path is treated as absolute if it either starts with '/' (or '\'), or with regex ^([^/^\]+:)[/\]
Character string with concatenated path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.