Description Usage Arguments Examples
Set MRAN snapshot date.
1 | setSnapshot(date, MRANroot = "http://mran.revolutionanalytics.com/snapshot/")
|
date |
Character vector with single ISO date, e.g. "2014-09-17". |
MRANroot |
URL containing snapshots |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | oldRepo <- getOption("repos")
# Empty date field returns current repo
setSnapshot()
setSnapshot(NULL)
# Valid snapshot date
setSnapshot("2014-11-16")
# Invalid snapshot date (in future), returns error
try(
setSnapshot("2024-11-16")
)
options(repos = oldRepo)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.