R Packages for SAP Analytics Cloud

The R visualization capabilities within SAP Analytics Cloud enable you to create interactive visualizations for advanced statistical and analytical analyses. You can:

  • Insert R visualizations into your stories
  • Interact with your visualizations, using controls such as filters
  • Edit your R scripts and preview visualizations
  • Share stories containing R visualizations with other users

R packages that are supported by SAP Analytics Cloud

To use R capabilities in SAP Analytics Cloud, your system must be configured to connect to an R runtime environment. Depending on your region, these are your options:

  • R server that you set up — with this option, you have an R engine running on a machine in the cloud and configured to SAP Analytics Cloud. This points the R engine for R execution. In this case, you are responsible for configuring the R engine (i.e. install the package you want).
  • R server runtime environment provided by SAP — this option is an SAP Cloud Platform service that provides ready-to-use R Server runtime to SAP Analytics Cloud and does not require any configuration by you. This environment comes with a list of preinstalled packages. Tenants created and configured in the EU1, EUDP, AP1, US1, and US2 can use or access the R server runtime environment deployed by SAP Analytics Cloud.

The figure below shows where in SAP Analytics Cloud you can switch between the two R server options.

If the R server connection is not configured, you can still run scripts on an R server deployed by SAP Analytics Cloud if it is available in your region.

In the future releases, the provided R server and R packages will be updated each quarter with the latest public version. Therefore, we recommend you ensure the R scripts you’re using are always running with the latest version available.

For security reason R-server runtime environment located in the SAP Cloud Platform can’t access the external network, for this reason there is no possibility to access external resources with R script (i.e. to install a package or connect to a database).

The R server runtime environment service provided by SAP currently runs R version 3.3.4 (Rserve 1.7.3), and comes with pre-installed packages below:

Package Version Link
abc 2.1 https://cran.r-project.org/package=abc
acepack 1.4.1 https://cran.r-project.org/package=acepack
actuar 2.1-1 https://cran.r-project.org/package=actuar
adabag 4.1 https://cran.r-project.org/package=adabag
ape 4.1 https://cran.r-project.org/package=ape
aplpack 1.3.0 https://cran.r-project.org/package=aplpack
approximator 1.2-6 https://cran.r-project.org/package=approximator
arm 1.9.3 https://cran.r-project.org/package=arm
arules 1.5-3 https://cran.r-project.org/package=arules
assertthat 0.2.0 https://cran.r-project.org/package=assertthat
bclust 1.5 https://cran.r-project.org/package=bclust
bit 1.1-12 https://cran.r-project.org/package=bit
Caret 6.0.77 https://cran.r-project.org/package=caret
cclust 0.6-21 https://cran.r-project.org/package=cclust
Chorddiag 0.1.2 https://github.com/mattflor/chorddiag
choroplethr 3.6.1 https://cran.r-project.org/package=choroplethr
circlize 0.4.1 https://cran.r-project.org/package=circlize
cluster 2.0.3 https://cran.r-project.org/package=cluster
coda 0.19-1 https://cran.r-project.org/package=coda
coin 1.2-1 https://cran.r-project.org/package=coin
colorspace 1. 3-2 https://cran.r-project.org/package=colorspace
Correlplot 1.0-2 https://cran.r-project.org/package=Correlplot
Corrgram 1.12 https://cran.r-project.org/package=corrgram
Corrplot 0.77 https://cran.r-project.org/package=corrplot
corpcor 1.6.9 https://cran.r-project.org/package=corpcor
Data.table 1.10.4 https://cran.r-project.org/package=data.table
Dichromat 2.0.0 https://cran.r-project.org/package=dichromat
diffobj 0.1.6 https://cran.r-project.org/package=diffobj
dlm 1.1-4 https://cran.r-project.org/package=dlm
dplyr 0.7.3 https://cran.r-project.org/package=plyr
expm 0.999-2 https://cran.r-project.org/package=expm
forecast 8.1 https://cran.r-project.org/package=forecast
gamlr 1.13-3 https://cran.r-project.org/package=gamlr
ggplot2 2.2.1 https://cran.r-project.org/package=ggplot2
ggvis 0.4.3 https://cran.r-project.org/package=ggvis
gmodels 2.16.2 https://cran.r-project.org/package=gmodels
googleVis 0.6.2 https://cran.r-project.org/package=googleVis
gtable 0.2.0 https://cran.r-project.org/package=gtable
Highcharter 0.5.0 https://cran.r-project.org/package=highcharter
Iterators 1.0.8 https://cran.r-project.org/package=iterators
janitor 0.3.0 https://cran.r-project.org/package=janitor
jsonlite 1.5 https://cran.r-project.org/package= jsonlite
labeling 0.3 https://cran.r-project.org/package=labeling
lattice 0.20-35 https://cran.r-project.org/package=lattice
lazyeval 0.2.0 https://cran.r-project.org/package=lazyeval
magrittr 1.5 https://cran.r-project.org/package=magrittr
markdown 0.8 https://cran.r-project.org/package=markdown
MASS 7.3-47 https://cran.r-project.org/package=MASS
metricsgraphics 0.9.0 https://cran.r-project.org/package=metricsgraphics
mgcv 1.8-22 https://cran.r-project.org/package=mgcv
mlbench 2.1-1 https://cran.r-project.org/package=mlbench
monmlp 1.1.4 https://cran.r-project.org/package=monmlp
Munsell 0.4.3 https://cran.r-project.org/package=munsell
nlme 3.1-131 https://cran.r-project.org/package=nlme
nnet 7.3-12 https://cran.r-project.org/package=nnet
plotly 4.7.1 https://cran.r-project.org/package=plotly
plyr 1.8.4 https://cran.r-project.org/package=plyr
Png 0.1-7 https://cran.r-project.org/package=png
polynom 1.3-9 https://cran.r-project.org/package=polynom
psych 1.7.8 https://cran.r-project.org/package=psych
randomforest 4.6-12 https://cran.r-project.org/package=randomForest
rCharts 0.4.5 https://github.com/ramnathv/rCharts
rcolorbrewer 1.1-2 https://cran.r-project.org/package=RColorBrewer
reshape 0.8.7 https://cran.r-project.org/package=reshape
rgl 0.98.1 https://cran.r-project.org/package=rgl
rpart 4.1.11 https://cran.r-project.org/package=rpart
r-digest 0.6.12 https://cran.r-project.org/package=digest
r-evaluate 0.10.1 https://cran.r-project.org/package=evaluate
r-foreach 1.4.3 https://cran.r-project.org/package=foreach
Scales 0.5.0 https://cran.r-project.org/package=scales
spatial 7.3-11 https://cran.r-project.org/package=spatial
stringi 1.1.5 https://cran.r-project.org/package=stringi
stringr 1.2.0 https://cran.r-project.org/package=stringr
sunburstR 1.0.2 https://cran.r-project.org/package=sunburstR
tibble 1.3.4 https://cran.r-project.org/package=tibble
tidyr 0.7.1 https://cran.r-project.org/package=tidyr
tidytext 0.1.3 https://cran.r-project.org/package=tidytext
Tm 0.7.1 https://cran.r-project.org/package=Tm
VennDiagram 1.6.17 https://cran.r-project.org/package=VennDiagram
Wordcloud 2.5 https://cran.r-project.org/package=wordcloud