The following steps are appropriate for the majority of Windows installations, and assume that the server and R are on the same Windows machine. If extensive resources will be needed to process data using R scripts, R can be located on a separate server, if this is the case, please skip to step 4.
- Install R as per the instructions on https://www.r-project.org/
The current version of the R node was tested against R 3.3.2-3.el7.x86_64.
- Start R by using the Start menu created by the R installer.
An R window opens.
- Install the additional packages required for the R node to execute by running the following commands inside your R window:
install.packages("Rserve")
install.packages("jpeg")
install.packages("png")
The current version of the R node was tested against the following package versions (later versions of these libraries may not be compatible with the R node):
- Rserve 1.7-3
- png 0.1-7
- jpeg 0.1-8
- Install the Rserve client into your existing server, as follows:
- Navigate to Rserve’s website (currently http://rforge.net/Rserve/) and download the Rserve_1.8-0.zip binary.Note: Later versions of Rserve may not be compatible with the R node.
- Unzip the downloaded file, then navigate to Rserve/java. Copy the REngine.jar and Rserve.jar files.
If you are using the server edition, paste the REngine.jar and Rserve.jar files into the following location:
<Data360 Analyze site directory>/lib/java
If you are using the desktop edition, paste the REngine.jar and Rserve.jar files into the following location:
%LOCALAPPDATA%/Data360 Analyze/site/lib/java
if you selected Local User during installation of orC:/ProgramData/Data360 Analyze/site/lib/java
if you selected All Users during installation.
- Navigate to Rserve’s website (currently http://rforge.net/Rserve/) and download the Rserve_1.8-0.zip binary.
-
Download the R Node Pack from the web page.
Open and import the R node LNA. See the integrated product help for more information on importing library nodes.
-
By default, the R node is imported into your My Documents folder.
If you are using the server edition, you can make the R node available for all users on the server by moving it to the Public Documents folder. To do this, from the Directory, click My Documents, then select the R node. Click the menu button in the details panel and select Move to Public Documents.
Starting Rserve server
- If you do not have an R window open, start R, using the Start menu icon created by the R installer.
- Run the following commands in the R window:
library(Rserve)
Rserve()
You have now started the Rserve server. You can close the R window and the Rserve server will continue to run normally.
Rserve.exe
. Once you have completed the above steps, see the R node topic in the integrated product help for information on running the R node.