RefreshIfOlderThan | R Documentation |
An R object will be automatically recalculated if its output is older than the duration specified. Recalculation will only occur when someone looks at that R object, or something that is calculated using it.
RefreshIfOlderThan(x, units = "seconds")
x |
The period expressed in |
units |
The time unit. One of |
If units
= "months"
, then x
must be an integer.
UpdateEvery
, UpdateAt
RefreshIfOlderThan(2, "hours")
RefreshIfOlderThan(1, "weeks")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.