relativizePath | R Documentation |
Relativizes a filepath. Somewhat the opposite of normalizePath
.
relativizePath(x, dir = getwd(), sep = "/", ...)
x |
length one character: a file path |
dir |
a reference directory |
sep |
path separator |
... |
ignored arguments |
x and dir are first normalized, then x is expressed relative to dir. If x and dir are on different drives (i.e. C:/ D:/) x is returned as an absolute path.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.