#' @include utils.R
#' @import rjd3toolkit
NULL
.onLoad <- function(libname, pkgname) {
if (! requireNamespace("rjd3toolkit", quietly=TRUE)) stop("Loading rjd3 libraries failed")
result <- rJava::.jpackage(pkgname, lib.loc=libname)
if (!result) stop("Loading java packages failed")
# proto.dir <- system.file("proto", package = pkgname)
# RProtoBuf::readProtoFiles2(protoPath = proto.dir)
# reload extractors
.jcall("jdplus/toolkit/base/api/information/InformationExtractors", "V", "reloadExtractors")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.