if (requireNamespace("rstudioapi", quietly = TRUE) && rstudioapi::isAvailable()) {
handlers("rstudio")
with_progress({ y <- slow_sum(1:10) })
print(y)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.