withTimeout | R Documentation |
Execute an expression with a timeout
withTimeout(expr, timeout = 2)
expr |
The expression to execute |
timeout |
The timeout in seconds. Default is 2. |
The result of the expression
withTimeout(cat("This works\n"), timeout = 0.2)
try(withTimeout({Sys.sleep(0.2); cat("This will fail\n")}, timeout = 0.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.