7/11/2023 0 Comments Library rjava fails to load rIf the $CLASSPATH isn’t defined correctly you won’t be able to compile your Java code. In my case all of them can be found in /usr/lib/R/site-library/rJava/jri/, so the $CLASSPATH should be set like that: export CLASSPATH =.:/usr/lib/R/site-library/rJava/jri/ Precisely you have to add the archives JRIEngine.jar, JRI.jar and REngine.jar. Second the $CLASSPATH needs to get an update. Please set all required environment variables before running this program. If you didn’t or the path is wrong you’ll fall into trouble: R_HOME is not set. First of all you need to publish you R installation path, my R is found in /usr/lib64/R : export R_HOME =/usr/lib64/R To talk to R through Java you have to specify three more environmental variables. InstallationĪssuming you have a running version of Java and GNU’s R, you have to install r-cran-rjava : aptitude install r-cran-rjava Shell environment ![]() Here you can learn how to setup for Debian/ Ubuntu/ akins. Today I played a bit with JRI as part of rJava, a Java-R-interface.
0 Comments
Leave a Reply. |