When installing rJava using the install.packages(\"rJava\") command I get the following error:
install.packages(\"rJava\")
checking Java support in R... present: interprete
The problem was rJava wont install in RStudio (Version 1.0.136). The following worked for me (macOS Sierra version 10.12.6) (found here):
RStudio
Version 1.0.136
macOS Sierra version 10.12.6
Step-1: Download and install javaforosx.dmg from here
javaforosx.dmg
Step-2: Next, run the command from inside RStudio:
install.packages("rJava", type = 'source')