To install and launch R and Rserve, follow the below step of instructions for your Operating System.
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 at this link: https://rforge.net/Rserve/doc.html |
Downloading the Installation Package for Windows
1. Go to http://cran.r-project.org/bin/windows/base and download the current version of R for Windows. [R-3.2.2-win.exe [62.5 MB]]
At the time of documentation, current version available is: R - 3.2.2
2. Run the downloaded executable to install the R package.
3. Open the R console window— by choosing R > Rx64 3.2.2 from the Start menu.
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.
Installing Rserve
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")
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
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.
Launching and Running Rserve
1. Type Below command to launch Rserve from within R
library(Rserve)
Rserve()
Once Rserve is successfully started, you can see the below notification that Rserve started in daemon mode.
Downloading the Installation Package
Launch R in Mac OSX:
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.
Running Rserve from the R console on MAC OSX
Installing Rserve and using a command line to open Rserve:
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