pb_fun <- function(x, fun, ...) {
if (requireNamespace("pbapply")) {
pbapply::pblapply(x, fun, ...)
} else {
lapply(x, fun, ...)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.