ROracle not working in R studio

前端 未结 2 1085
猫巷女王i
猫巷女王i 2020-12-18 06:01

I\'m trying to install ROracle package on a unix box. The package gets installed properly. But library(ROracle) does not work fine with the error

library(ROr         


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-18 06:58

    I had the exact same problem, and I have just resolved it thanks to a conference with some very kind and helpful Oracle personnel.

    We need to include the following line in /etc/rstudio/rserver.conf file (which by default is empty):

    rsession-ld-library-path=/usr/lib64/R/lib:/u01/app/oracle/product/12.1.0.2/dbhome_1/lib
    

    i.e. the R & Oracle home directories:

    $ echo $R_HOME
    /usr/lib64/R
    $ echo $ORACLE_HOME
    /u01/app/oracle/product/12.1.0.2/dbhome_1
    

    You have to restart the RStudio server after modifying the configuration file.

    I have checked this only with RStudio server, so not sure if it is necessary for RStudio Desktop, too...

    See here for more details (although it refers to Oracle R Enterprize, it is also applicable to vanilla R).

提交回复
热议问题