R is highly modularized, which implies that, depending on what you want to run, you have to preload the correct packages. For this chapter, let's download several packages that will enable our R installation with modules that are ready to process the scripts that we need to use into Qlik Sense.
Type in the following commands and check if all of them run correctly. Depending on your network connection, this can take a few minutes, so grab some coffee while you wait:
install.packages("jsonlite", lib = "C:\R\R-3.5.2\library")
install.packages("ChainLadder", lib = "C:\R\R-3.5.2\library")
install.packages("forecast", lib = "C:\R\R-3.5.2\library")
install.packages("rpart", lib = "C:\R\R-3.5.2\library")
install.packages("partykit", lib = "C:\R\R-3.5.2\library")
install.packages("tseries", lib = "C:\R\R-3.5.2\library")
q()
The packages that we have installed in the preceding steps are described as follows:
- The jsonlite parses and generates JSON optimized objects (https://cran.r-project.org/web/packages/jsonlite/index.html)
- The ChainLadder provides statistical methods and models (https://cran.r-project.org/web/packages/ChainLadder/index.html)
- The forecast methods for forecast (https://cran.r-project.org/web/packages/forecast/index.html)
- The rpart classification and regression modules (https://cran.r-project.org/web/packages/rpart/rpart.pdf)
- The partykit models for regression (https://cran.r-project.org/web/packages/partykit/index.html)
- The tseries time series and financial analysis (https://cran.r-project.org/web/packages/tseries/index.html)