R/onLoad.R

Defines functions onLoad

## for rJava

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

.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 or higher is needed for this package but not available")
}

Try the streamMOA package in your browser

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

streamMOA documentation built on April 7, 2018, 9:04 a.m.