Versions Compared

Key

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

...

  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.

    Image Modified
     
  2. When prompted to select a CRAN mirror, select a location near you.

    Image Modified
     
  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’.

    Image Modified
     
  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

    Image Modified


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")
Image Modified
 
 

...

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
 
Image Modified
 
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.
Image Modified
 
Launching and Running Rserve
 
1. Type Below command to launch Rserve from within R
         library(Rserve)
         Rserve()
Image Modified
 
Once Rserve is successfully started, you can see the below notification that Rserve started in daemon mode.
 
Image Modified
 

...

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.
 
Image Modified
 
Image Modified
 
 
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 Modified 
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

Image Modified