Description Usage Arguments Value See Also Examples
This function will return a number corresponding to the system time and remain stable until a given number of seconds have elapsed, after which it will update to the current time. This makes it useful as a way to timeout and invalidate a memoised cache after a certain period of time.
1 | timeout(seconds, current = as.numeric(Sys.time()))
|
seconds |
Number of seconds after which to timeout. |
current |
The current time as a numeric. |
A numeric that will remain constant until the seconds have elapsed.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.