title: rJava installation fails on macOS 10.14
body: <p>After upgrading to MacOS Mojave (10.14.1), I'm no longer able to install <code>rJava</code> for R version 3.5.1 with Java version "1.8.0_102" installed. </p>
  
  <p>I tried the <a href="https://stackoverflow.com/questions/35179151/cannot-load-r-xlsx-package-on-mac-os-10-11">previous solution for MacOS 10.11</a> but it still did not work, giving this error:</p>
  
  <pre><code>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.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-9.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
  </code></pre>