[R-SIG-Mac] java version, perhaps related to ggplot2

Richard M. Heiberger rmh @ending from temple@edu
Tue May 22 07:36:52 CEST 2018

sI have Macintosh High Sierra 10.13.4
and R_3.5.0

I am attempting to R CMD build and check my package microplot against
the imminent ggplot2_2.2.1.9000

The build fails with messages

** byte-compile and prepare package for lazy loading
Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object
6): Library not loaded:
  Referenced from:
  Reason: image not found
ERROR: lazy loading failed for package ‘microplot’

Indeed I do not have Java 9, I have Java 8, which the Java updater
says is current (171).
The java site
seems to want to give me Java 10 (not Java 9), and the discussion on
this R-sig-mac list
    [R-SIG-Mac] R and Java 10 ➜ rJava not able to build
beginning March 29 seems to say 8 is still correct.  As suggested
there I looked at R-admin for 3.5.0
and discover "The situation with Java support on macOS is messy".
I attempted the suggested workaround
and got the same message as above.

I need guidance as to the next steps I should take.


More information about the R-SIG-Mac mailing list