R/onLoad.R

Defines functions .onLoad .onAttach

#' @importFrom rJava .jpackage
#' @import OnassisJavaLibs
.onLoad <- function(libname, pkgname) {
    .jpackage(pkgname, lib.loc = libname)
    tools::vignetteEngine("knitr", pattern = "[.]Rmd$", package = "knitr")
    # .jinit(force.init=TRUE)
    initJavaLibs()
}

.onAttach <- function(libname, pkgname) {
    packageStartupMessage("OnASSIs successfully loaded")
}
eugeniaeueu/Onassis documentation built on March 9, 2020, 8:17 a.m.