The downloaded binary packages are in /var/folders/gx/1s4bnssd6g39xx4grym4ksm40000gp/T//RtmprJtq0d/downloaded_packages > library('xlsx') Error: package or namespace load failed for ‘xlsx’: .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.5/Resources/library/rJava/libs/rJava.so': dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/lib/server/libjvm.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/library/rJava/libs/rJava.so Reason: image not found
Description of issue -
I am fairly new to R, but have been using it for a few months with no issue. Now I suddenly cannot install and access new packages. The installation appears to work fine, but when I try to call library(), I get the error above.
Steps taken so far -
I tried updating Java; I checked the .libPaths() and there is just one and it looks correct; I tried updating all packages; I tried restarting R Studio and my computer.
- RStudio Edition: desktop
- RStudio Version: Version 1.1.463
- OS Version: macOS Mojave version 10.14.5
- R Version: R version 3.5.3 (2019-03-11)
- RStudio diagnostics report:
- RStudio crash report:
- RStudio application log files: