C.2 Install RStudio Server
RStudio Server is a Linux application that provides a web-based interface to R on a server.
To install RStudio Server for use with Oracle Machine Learning for R:
-
Go to the RStudio website and navigate to the RStudio Server Download page. Download the server to your Linux system and follow the installation instructions.
-
Create the file
/etc/rstudio/rserver.conf
. Add the values ofR_HOME
andORACLE_HOME
.sudo vi /etc/rstudio/rserver.conf rsession-ld-library-path=R_HOME/lib:ORACLE_HOME/lib
Note: The default value of
R_HOME
on Linux is/usr/lib64/R
. -
Create the configuration file
/usr/lib64/R/etc/Renviron.site
. Supply the values ofORACLE_HOME
,ORACLE_HOSTNAME
, andORACLE_SID
. For example, using the BASH shell:cd /usr/lib64/R/etc sudo vi Renviron.site ORACLE_HOME=ORACLE_HOME ORACLE_HOSTNAME=ORACLE_HOSTNAME ORACLE_SID=ORACLE_SID
-
Restart the RStudio Server service as sudo or root:
sudo rstudio-server restart
Refer to the instructions for configuring the server. Return to the RStudio Server Download page, then navigate to the Configuring the Server article in the RStudio documentation.
Parent topic: Installing RStudio