I'm encountering the same error message discussed in this question, which boils down to:
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/home/anh/Rlibs/rJava/libs/rJava.so':
libjvm.so: cannot open shared object file: No such file or directory
The problem is that following the answer there (i.e. setting LD_LIBRARY_PATH
to point to libjvm.so
) solved my issue in command-line R
, but Rstudio cannot find libjvm.so
still.
System specs: Ubuntu 14.04, R 3.1.1, Rstudio Desktop 0.98, apt-get install r-cran-rjava
done