R/onLoad.R

Defines functions .onAttach .onLoad

#' @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")
}

Try the Onassis package in your browser

Any scripts or data that you put into this service are public.

Onassis documentation built on Nov. 8, 2020, 8:18 p.m.