coatless-mac / r-macos-rtools

Scripts to build an **unofficial** Rtools-esq installer for the macOS R toolchain
171 stars 6 forks source link

Java setup for rJava? #3

Open coatless opened 6 years ago

coatless commented 6 years ago

Consider including Java:

# Headless download
# curl ... 

# This URL seems unstable.

# Then do a hdi mount/install/eject

# Run javareconf
R CMD javareconf
coatless commented 6 years ago

Seems like only Java SE 8 is presently supported by rJava, c.f. Ripley's remarks on r-sig-mac

Is the correct answer. How to work around this is in the current manual, specifically R-admin for R 3.5.0 alpha or R-devel.

Java 10 has been out for 8 days, and the rJava maintainer was made aware of the issues early this month, several other package maintainers only today. The advice is to stick to an LTS release of Java (currently 8) unless you know what you are doing.

And don't post to multiple lists!

https://stat.ethz.ch/pipermail/r-sig-mac/2018-March/012705.html

coatless commented 6 years ago

Looks like the issues with Java 10 were addressed in rJava:

https://github.com/s-u/rJava/compare/7558bfd61aacd03329991ced356fc452258f5807...32e2fd7fa956fb317eb985443c69744b39782116

The headless install of Java can be done using:

https://derflounder.wordpress.com/2018/04/19/oracle-java-10-jdk-and-jre-installation-scripts-for-macos/