unit_type <- NULL
.onLoad <- function(...) {
theme_registration()
if (as.numeric(version$major) >= 4) {
unit_type <- getFromNamespace("unitType", "grid")
} else {
unit_type <- function(x) {attr(x, "unit", exact = TRUE)}
}
utils::assignInMyNamespace("unit_type", unit_type)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.