When installing rJava using the install.packages(\"rJava\") command I get the following error:
install.packages(\"rJava\")
checking Java support in R... present: interprete
I got it working by downloading : https://cran.r-project.org/src/contrib/rJava_0.9-8.tar.gz and running command R CMD install rJava_0.9-8.tar.gz