This document describes SpagoBI's new data mining engine that uses the R scripting language. The engine allows users to execute R scripts and display multiple outputs. It features the JRI and Rserve libraries to interface R with Java applications. The engine works with datasets, scripts, commands, outputs, parameters, and variables. Scripts contain R code, datasets provide data, commands execute scripts and outputs display results. The template defines how these components work together in a data mining document.