Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To install and launch R and Rserve, follow the below step of instructions for your Operating System. 

Table of Contents

Installing R on Windows OS

...

Installing R on Windows OS

Info

The Windows version of Rserve supports only one connection at a time. Any subsequent connections to the same Rserve share the same working directory and data space. In order to have multiple users share a single R instance, you should consider running Rserve on Linux or OS X platforms. These platforms don't have the single connection limitation. You can find more information in at this link:   https://rforge.net/Rserve/doc.html

...

  1. In the R console, type command:

    install.packages("Rserve").

    -  Windows will prompt for permission to create folder in R installation directory for packages download. Select Yes.
    cranImage Removed
    Image Added
     
  2. When prompted to select a CRAN mirror, select a location near you.
    WinImage Removed
    Image Added
     
  3. Note the location to which the package has been downloaded.
     
  4. Unzip the Rserve package ("Extract all files."). Explore it, It has folder named ‘Rserve’.
    Unzip Rserve package.pngImage Removed
    Image Added
     
  5. Copy- Paste the Rserve directory to Path- containing R.dll file.

    For example , R.dll file location - C:\Program Files\R\R-3.2.2\bin\x64
    R.dll file location .pngImage Removed
    Image Added


Launching and Running Rserve
 
Steps to run Rserve –
1. First open an R console window—for example, by choosing R > Rx64 3.2.2 from the Start menu,
 
2. To run Rserve from the R Console on a Windows computer, enter the following 4  commands
 
          setwd("C:/Program Files/R/R-3.2.2/bin/x64")
          library(Rserve)  
          Rserve()
          Rserve(args = "--vanilla --RS-enable-remote")
Run Rserve.pngImage Removed Image Added
 
 

...

Installing R on Ubuntu OS

Downloading the Installation Package
1. Open a new Terminal window and run the below command to download latest version of R and Rserve:
 
         sudo apt-get install r-base r-base-dev r-cran-rserve
 
rserveImage RemovedImage Added
 
2. Once the installation process is complete, open R from Ubuntu Finder and it opens in a terminal. You can also type sudo R in a terminal to start up R in Ubuntu.
rserveImage RemovedImage Added
 
Launching and Running Rserve
 
1. Type Below command to launch Rserve from within R
         library(Rserve)
         Rserve()
rserveImage RemovedImage Added
 
Once Rserve is successfully started, you can see the below notification that Rserve started in daemon mode.
 
Launching R ServeImage RemovedImage Added
 

...

Installing R on Mac OS X

...

Enter 'help()' for on-line help, or 'help.start()' for an HTML browser interface for help. Type 'demo()' for some demos and 'q()' to quit R.
 
R1Image RemovedImage Added
 
R.appImage RemovedImage Added
 
 
Running Rserve from the R console on MAC OSX 
 

...

  1. To Install Rserve navigate to https://rforge.net/Rserve/files/ and download Rserve snapshot [Rserve_1.8-4.tar.gz 486KB].
     
  2. Open a terminal window and navigate to the directory containing the downloaded Rserve file. Type below command to install Rserve package.

    R CMD INSTALL <RServe FileName>
    Eg.   R CMD INSTALL  Rserve_1.8-4.tar.gz

Image Added RserveInstallImage Removed
Launching and Running Rserve from command line:
 
Rserve is a stand-alone program, so it can be started directly as well. If you installed Rserve from a source package (on unix), type: R CMD Rserve
 

  1. Execute below command to start R with Rserve package:
    R CMD Rserve

RserveLaunchImage RemovedImage Added