.onLoad <- function(libname, pkgname) {
# To get rid of the CRAN check NOTE like:
# > Running R code in 'testthat.R' had CPU time 6.6 times elapsed time
# See: https://github.com/Rdatatable/data.table/issues/5658
if (any(grepl("_R_CHECK", names(Sys.getenv()), fixed = TRUE))) {
data.table::setDTthreads(2)
}
locate_eplus()
reg_custom_units()
}
.onAttach <- function(libname, pkgname) {
locate_eplus()
reg_custom_units()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.