.dot | R Documentation |
The .dot
functions creates functions that allows relative-like
specification of paths, but are safe from changing working directory.
.dot(x, root = getwd(), mustExist = FALSE, relative = FALSE, create = TRUE)
.dot2(names, quiet = FALSE, ...)
x |
File path that is appended to |
root |
Root of your working directory,
from which |
mustExist |
Logical value; if |
relative |
For |
create |
Logical values, creates the target directory when |
names |
Character vector of names |
quiet |
Logical value, suppresses output to stdout() when |
... |
Arguments passed on to |
A function that returns file paths constructed from
root
, x
, and ...
.
Side effect: It creates the directory.
.data <- .dot('data', create=FALSE)
.data('input.txt')
.data(c('a.txt','b.txt'))
.dot2(c('rawdata','results'), create=FALSE)
.rawdata('rawfile.csv')
.results('myresults.txt')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.