lcores <- parallel::detectCores()
if (is.na(lcores) || lcores == 1) {
parcores <- function() { 1 }
} else {
parcores <- function() {lcores %/% 2}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.