When installing rJava using the install.packages(\"rJava\")
command I get the following error:
checking Java support in R... present:
interprete
The rJava package looks for the /usr/lib/jvm/default-java/
folder. But it's not available as default. This folder have a symlink for the default java configured for the system.
To activate the default java install the following packages:
sudo apt-get install default-jre default-jre-headless
Tested on ubuntu 17.04 with CRAN R 3.4.1