C Installing RStudio

This appendix provides tips for installing RStudio Server for use with Oracle Machine Learning for R on Linux. This appendix includes these topics:

C.1 About RStudio

Describes RStudio.

RStudio is a free, open source Integrated Development Environment (IDE) for R. RStudio is available under GNU Affero General Public License (AGPL). You can use RStudio with Oracle Machine Learning for R, however RStudio is not included with OML4R. If you want to use RStudio, you must install and license it separately.

See Also:

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:

  1. 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.

  2. Create the file /etc/rstudio/rserver.conf. Add the values of R_HOME and ORACLE_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.

  3. Create the configuration file /usr/lib64/R/etc/Renviron.site. Supply the values of ORACLE_HOME, ORACLE_HOSTNAME, and ORACLE_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
  4. 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.

C.3 Install RStudio Desktop

RStudio Desktop is an IDE for standalone machines.

To install RStudio Desktop:

  1. Install R.

  2. Go to the RStudio website, navigate to the RStudio Desktop Download page, and download RStudio Desktop.

  3. Run the installer and follow the prompts.

  4. Click the desktop icon to initialize RStudio.