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:
- About RStudio
Describes RStudio. - Install RStudio Server
RStudio Server is a Linux application that provides a web-based interface to R on a server. - Install RStudio Desktop
RStudio Desktop is an IDE for standalone machines.
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:
-
GNU Affero General Public License for details about AGPL
-
RStudio for details about RStudio
Parent topic: Installing RStudio
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
C.3 Install RStudio Desktop
RStudio Desktop is an IDE for standalone machines.
To install RStudio Desktop:
-
Install R.
-
Go to the RStudio website, navigate to the RStudio Desktop Download page, and download RStudio Desktop.
-
Run the installer and follow the prompts.
-
Click the desktop icon to initialize RStudio.
Parent topic: Installing RStudio