Apache Hop R Integration Plugin is used to execute R code direct from Apache Hop (Hop). This plugin is overwritten from the pentaho original created by dekarlab.
The Hop RScript Plugin is built with Maven.
$ git clone https://github.com/ravamo/hop-rscript.git
$ cd hop-rscript
$ mvn clean installThis will produce a plugin archive in target/hop-rscript-${version}.zip. This archive can then be extracted into your Hop plugin/transforms directory.
R script plugin can be installed by performing the following steps:
- Copy the plugin folder (RScriptPlugin) into the folder of your Hop installation: apache-hop-client-{version}\hop\plugins\transforms
- Install R project from the site http://www.r-project.org/
- Install rJava package in R by executing: install.packages("rJava")
- Copy JRI library rJava/jri/jri.dll (windows) or rJava/jri/libjri.so (linux) to: hop/libswt/{youroperation system}, for example: hop/libswt/win64
- Specify location of R using R_HOME environment variable. (like: C:\R\R-3.0.2).
- For windows, it is also needed to put in PATH variable the path to R.dll, for example: C:\R\R-{your vresion}\bin{your operation system}
- Migrate the functionality to PDI to Apache Hop
- Add the posibility to run a snippet code
- Fix the old bug to pdi pentahor