C Installing RStudio

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

C.1 About 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 R Enterprise, however RStudio is not included with Oracle R Enterprise. If you want to use RStudio, you must install and license it separately.

See Also:

C.2 Installing 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 R Enterprise:

  1. Download RStudio to your Linux system from the RStudio website and follow the installation instructions:

    http://www.rstudio.com/products/rstudio/download-server/

  2. Edit the configuration file rserver.conf. Supply the values of RHOME and ORACLE_HOME.

    sudo vi /etc/rstudio/rserver.conf
        rsession-ld-library-path=RHOME/lib:ORACLE_HOME/lib
    

    Note: The default value of RHOME on Linux is /usr/lib64/R.

  3. Edit the configuration file .Renviron. Supply the values of ORACLE_HOME, ORACLE_HOSTNAME, and ORACLE_SID. For example, using the BASH shell:

    cd /home/oracle
    sudo vi .Renviron
        ORACLE_HOME=ORACLE_HOME
        ORACLE_HOSTNAME=ORACLE_HOSTNAME
        ORACLE_SID=ORACLE_SID
     
    export ORACLE_HOME
    export ORACLE_HOSTNAME
    export ORACLE_SID
    
  4. Refer to the instructions for configuring the server at:

    http://www.rstudio.com/ide/docs/server/configuration

  5. To access the Oracle R Distribution 3.2.0 help within RStudio, modify as sudo or root the file /usr/lib/rstudio-server/R/modules/SessionHelp.R.

    Update httpdPortIsFunction to the following:

    .rs.addFunction( "httpdPortIsFunction", function() {
       getRversion() >= "3.2"
    })
    

C.3 Installing RStudio Desktop

RStudio Desktop is an IDE for standalone machines.

To install RStudio Desktop:

    1. Install R.

    2. Download RStudio Desktop from the RStudio website:

      http://www.rstudio.com/products/rstudio/#Desk

    3. Run the installer and follow the prompts.

    4. Click the desktop icon to initialize RStudio.

    5. To access the Oracle R Distribution 3.2.0 help within RStudio, modify as Administrator the file RStudio Home Directory\R\modules\SessionHelp.R. In the following example, RStudio is installed in the Program Files folder on the C drive:

      C:\Program Files\RStudio\R\modules\SessionHelp.R
      

      Update httpdPortIsFunction to the following:

      .rs.addFunction( "httpdPortIsFunction", function() {
         getRversion() >= "3.2"
      })