I had the same problem, and I just resolved it through a conference with very friendly and helpful Oracle staff.
We need to include the following line in the /etc/rstudio/rserver.conf file (which is empty by default ):
rsession-ld-library-path=/usr/lib64/R/lib:/u01/app/oracle/product/12.1.0.2/dbhome_1/lib
i.e. R and Oracle source directories:
$ echo $R_HOME /usr/lib64/R $ echo $ORACLE_HOME /u01/app/oracle/product/12.1.0.2/dbhome_1
After changing the configuration file, you need to restart the RStudio server.
I checked this only with an RStudio server, so I'm not sure if this is necessary for RStudio Desktop either ...
See here for more details (although this applies to Oracle R Enterprize, it also applies to vanilla R).
source share