Creating an R data mining model
In this recipe, you will create another Naive Bayes mining model, this time using R. This is a preparation for the next recipe, when you will use R in SSIS.
Getting ready
You can download R from the Comprehensive R Archive Network (CRAN) site at http://cran.r-project.org . You can get the R engine for Windows, Linux, or macOS. After installation, you start working in an interactive mode. You can use the R console client tool to write the code line by line. However, the most widely used free tool for writing and executing R code is RStudio IDE. It is a free tool, and you can download it from https://www.rstudio.com/ .
This section assumes you use RStudio for the code examples. In addition, you need to have a web connection in order to install additional R packages you need for this recipe.
Note that if you are not interested in R, you can completely skip this recipe. The R code developed here is used in the next recipe as a parameter of the sys.so_execute_external_script...