Installing R and the Required Packages

R is an open-source programming language and software environment for statistical computing. The current and recommended version is R 3.2.1.

Expert Analytics supports the following R algorithms and dependent packages for both SAP HANA and agnostic platforms.
Table 1: SAP HANA (Online):

R Algorithm

Dependent Packages

HANA R-Apriori

arules

HANA R-CNR Tree

rpart

HANA R-Multiple Linear Regression

stats

HANA R-Triple Exponential Smoothing

stats

HANA R-Bagging Classification

adabag, rpart

HANA R-Boosting Classification

adabag, rpart

HANA R-Random Forest Classification

randomForest

HANA R-Random Forest Regression

randomForest

Table 2: Agnostic (Offline):

R Algorithm

Dependent Packages

R-CNR Tree

rpart

R-Apriori

arules

R-K-Means

stats

R-Linear Regression

stats

R-Multiple Linear Regression

stats

R-Exponential Regression

stats

R-Geometric Regression

stats

R-MONMLP Neural Network

monmlp

R-NNet Neural Network

nnet

R-Single Exponential Smoothing

stats

R-Double Exponential Smoothing

stats

R-Triple Exponential Smoothing

stats

R-Bagging Classification

adabag, rpart

R-Boosting Classification

adabag, rpart

R-Random Forest Classification

randomForest

R-Random Forest Regression

randomForest

Prerequisites:

To use open-source R algorithms in your analysis, you need to install the R environment and configure it with the application.

SAP Predictive Analytics provides an option to install and configure the current version of R and the required packages from within the application. Ensure that you are connected to the internet while installing R.

Before installing the current version of R 3.2.1, R 3.1.2, R 3.1.0, R 3.0.1 or R-2.15.1 (and corresponding required packages), ensure that the following requirements are met:
  • The existing R is uninstalled and the registry entries and the R installation folder are removed from the machine.
  • The R environment variables (R_LIBS, R_HOME) and R path variables are removed.

Installation:

To install the R environment and the required packages, perform the following steps:

  1. Launch SAP Predictive Analytics.
  2. Open Expert Analytics.
  3. From the File menu, choose Install and Configure R.
  4. Select Install R.
  5. Read the open-source R license agreement, important instructions, and select I agree to install R using the script.
  6. Select Ok.
Note If you have already installed R, you can use this procedure to install the required R packages, or manually install the following required packages through your R console:
Note From SAP Predictive Analysis 1.14 release onwards, R-2.11.1 is not supported.