Description Usage Arguments Value Examples
Retrieves the path of a file stored in basepath/fname
that has
the closest modification date to goalDate
. If no such file exists, an
error will be thrown.
1 | retrievePath(fname, basepath = ".", goalDate = lubridate::now())
|
fname |
The name of the directory in |
basepath |
A string. The path which stores |
goalDate |
The 'goal' date for the revision we are trying to retrieve. Whichever file is closest in time to the 'goal' date will be selected |
A string. The full path to the file, or an error if such a file cannot be found.
1 2 | storeRDS(mtcars, 'mtcars')
retrievePath('mtcars', goalDate=lubridate::now() - lubridate::days(10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.