R Scripts Deployment
R Scripts System Requirements
License Requirements
This feature is available with the core APM application; no specific license is required.
Additional Components Required
- R Server: A machine on which the R Server software is installed. The software requirements of this server are determined by the third-party distributor of the software.
- Rserve 1.8-11 with R V4.3.1 running in Docker containers on Linux servers
Deploy R Scripts for the First Time
Before You Begin
After you have installed and configured the basic APM system architecture, including the R server, you will need to perform some configuration steps specifically for R Scripts.
The following table outlines the steps that you must complete to deploy and configure this module for the first time. These instructions assume that you have completed the steps for deploying the basic system architecture.
These tasks may be completed by multiple people in your organization. We recommend, however, that the tasks be completed in the order in which they are listed.
Results
Step | Task | Notes |
---|---|---|
1 | Ensure that your R Server is configured according to the R Scripts system requirements. For more information, refer to Install Rserver and R. | This step is required. |
2 | In APM, specify the R Server credentials. | This step is required. |
Install Rserve and R
About Rserve
- No authentication
- Plaintext password authentication
Install Rserve and R
Rserve and R can be installed on either Windows or Linux platforms; however, Linux is recommended.
GE Vernova has tested Rserve 1.8.13 with R V4.4.0 running in a Docker container, using the images provided by the Rocker project (https://www.rocker-project.org/) as base images. The following sample Docker files can be used to build suitable containers:
FROM rocker/r-ver:4.4.0
# install Rserve
RUN install2.r --error \
-r https://cran.rstudio.com \
Rserve && \
rm -rf /tmp/downloaded_packages/ /tmp/*.rds
ENTRYPOINT R -e "Rserve::run.Rserve()"
FROM rocker/r-ver:4.4.0
# install tidyverse
RUN /rocker_scripts/install_tidyverse.sh
# install tidymodels
RUN install2.r --error --skipinstalled tidymodels && \
rm -rf /tmp/downloaded_packages
# install RcppArmadillo
RUN install2.r --error \
-r https://cran.rstudio.com \
RcppArmadillo && \
rm -rf /tmp/downloaded_packages/ /tmp/*.rds
# install WeibullR
RUN install2.r --error \
-r http://R-Forge.R-project.org \
WeibullR && \
rm -rf /tmp/downloaded_packages/ /tmp/*.rds
# install survival
RUN install2.r --error \
-r https://cran.rstudio.com \
survival && \
rm -rf /tmp/downloaded_packages/ /tmp/*.rds
# install Rserve
RUN install2.r --error \
-r https://cran.rstudio.com \
Rserve && \
rm -rf /tmp/downloaded_packages/ /tmp/*.rds
ENTRYPOINT R -e "Rserve::run.Rserve()"