R/AAAonLoad.R

Defines functions .onLoad

## Java

.jinit()

jv <- .jcall("java/lang/System",
             "S",
             "getProperty",
             "java.runtime.version")

if (substr(jv, 1L, 2L) == "1.") {
  jvn <- as.numeric(paste0(strsplit(jv, "[.]")[[1L]][1:2], collapse = "."))
  if (jvn < 1.5)
    stop("Java >= 5 is needed for this package but not available")
}

.onLoad <- function(libname, pkgname) {
  options(java.parameters = "-Xrs")  ### so sun java does not kill R on CTRL-C
  .jpackage(pkgname, lib.loc = libname)
}

Try the arulesNBMiner package in your browser

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

arulesNBMiner documentation built on Oct. 7, 2026, 9:07 a.m.