[R] How to change the default library directory?

Bai Yan baiyan at ece.ogi.edu
Mon Mar 3 00:53:03 CET 2003

I installed SJava package at $R_HOME/lib/R/library/

When I conduct library(SJava), I always need to explicitly specify the
library path, how could I change the default library path?

I have included the SJava path in the LD_LIBRARY_PATH variable as:

The result in R is as:
> library(SJava)
Error in library(SJava) : There is no package called `SJava'
> library(SJava,
Warning message:
The Java machine is no longer initialized automatically. You must
explicitly load it in: firstlib(which.lib.loc, package)

Another question is about firstlib, what should I do to initialize the
Java machine here?

Your helps are really appreciated!!!

Yan Bai

More information about the R-help mailing list