PageRenderTime 233ms CodeModel.GetById 121ms app.highlight 1ms RepoModel.GetById 109ms app.codeStats 0ms

/rcdklibs/R/rcdklibs.R

http://github.com/rajarshi/cdkr
R | 15 lines | 11 code | 4 blank | 0 comment | 1 complexity | 1a0a1c6d3cb0ec378172e93e31f9f26d MD5 | raw file
 1.packageName <- "rcdklibs"
 2
 3require(rJava, quietly=TRUE)
 4
 5.onLoad <- function(lib, pkg) {
 6    dlp<-Sys.getenv("DYLD_LIBRARY_PATH")
 7    if (dlp!="") { # for Mac OS X we need to remove X11 from lib-path
 8        Sys.setenv("DYLD_LIBRARY_PATH"=sub("/usr/X11R6/lib","",dlp))
 9    }
10    jars <- list.files(path=paste(lib,pkg,"cont", sep=.Platform$file.sep),
11                       pattern="jar$", full.names=TRUE)
12    .jinit(classpath=c(jars))
13}
14    
15