R/onLoad.R

Defines functions onLoad

.onLoad <- function(libname,pkgname) {
  #Reused code from the subspace package. This is done to keep WEKA from
  #creating a wekafiles folder in the user's home directory.
  if(is.na(isdir <-
             file.info(Sys.getenv("WEKA_HOME",
                                  file.path(path.expand("~"),
                                            "wekafiles")))$isdir) ||
       !isdir)
    Sys.setenv(WEKA_HOME = tempfile("RWeka"))
  
  rJava::.jpackage(name=pkgname,lib.loc=libname)
}

Try the subspaceMOA package in your browser

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

subspaceMOA documentation built on May 29, 2017, 10:50 p.m.