R/bridgedb.R

Defines functions onLoad

.packageName <- "BridgeDbR"

require(rJava, quietly=TRUE)

.onLoad <- function(lib, pkg) {
    dlp<-Sys.getenv("DYLD_LIBRARY_PATH")
    if (Sys.info()['sysname'] == "Darwin") 
    {
        Sys.setenv("DYLD_LIBRARY_PATH"=sub("/usr/X11R6/lib","",dlp))
    }
    libJars = c(
        "org.bridgedb.jar",
        "org.bridgedb.bio.jar",
        "org.bridgedb.rdb.jar",
        "derby.jar"
    	)
    .jpackage(pkg, jars=libJars)
#make sure the biodatasources are instantiated
.jcall("org/bridgedb/bio/DataSourceTxt","V","init")
}

Try the BridgeDbR package in your browser

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

BridgeDbR documentation built on Nov. 17, 2017, 8:25 a.m.