set_crayon = function() {
if (!is_gitlab() && !is_github()) {
return(invisible(NULL))
}
if (Sys.getenv("CRAYON") == "false") {
options("crayon.enabled" = FALSE)
} else {
options("crayon.enabled" = TRUE)
}
return(invisible(NULL))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.