You have a problem installing rJava, most of the troubleshooting steps done here do not work.
It returns an error
Loading required package: rJava
Error: package or namespace load failed for 'rJava':
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/ rJava.so':
I am in the latest version of R / Rstudio and Mac El Capitan
I also tried this method 1, which did not work
sudo R CMD javareconf
Then in the interpreter R:
install.packages('rJava', type='source')
install.packages('xlsx', type='source')
method 2
sudo ln -s $(/usr/libexec/java_home)/jre/lib/server/libjvm.dylib /usr/local/lib
error ln: /usr/local/lib/libjvm.dylib: File exists
method 3 install.packages ("rJava", type = "binary") error: tar: Failed to set the default locale
to resolve the default locale error
system("defaults write org.R-project.R force.LANG en_US.UTF-8")
when loading rJava, all the same error:
image not found
It looks like it is installed, but it does not load
source
share