[Quantian-general] Quantian and Java

Ben Goodrich goodrich at fas.harvard.edu
Sun Mar 19 03:13:48 UTC 2006


Hi all,

First, great job on the latest couple versions of Quantian. I can't wait 
for the Quantian based on Knoppix 5.0.

But I am having a problem with the rJava library for R (needed for JGR) 
in Quantian_0.7.9.2. It seems to be a Java problem. I do library(JGR) or 
library(rJava) and get:

Error in dyn.load ...
unable to load ... rJava.so
libjvm.so: cannot open shared object file: No such file or directory

I haven't looked into this all that much. Does rJava presume the 
non-free Sun version or is it merely a configuration issue with gcj?

More generally, can any think of a script to test that all the R 
packages actually load correctly?

In R, you could do something like

ip <- installed.packages()
for(i in 1:nrow(ip)) require(ip[i,1], character.only = TRUE)

But the loop fails when it encounters a faulty package (one of them 
causes a segmentation fault). You can start the loop over where it 
breaks, but eventually you run into the maximum number of dynamically 
loaded libraries. There must be a better approach.

Thanks,
Ben




More information about the Quantian-general mailing list