Running examples in ‘r2pmml-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: decorate.ranger
> ### Title: Decorates a "ranger" object with a "variable.levels" element.
> ### Aliases: decorate.ranger
> 
> ### ** Examples
> 
> library("ranger")
> library("r2pmml")
> 
> data(iris)
> iris.ranger = ranger(Species ~ ., data = iris, num.trees = 17,
+     write.forest = TRUE, probability = TRUE)
> iris.ranger = decorate(iris.ranger, data = iris)
> r2pmml(iris.ranger, file.path(tempdir(), "Iris-Ranger.pmml"))
Feb 02, 2020 10:54:50 PM org.jpmml.rexp.Main run
INFO: Parsing RDS..
Feb 02, 2020 10:54:50 PM org.jpmml.rexp.Main run
INFO: Parsed RDS in 7 ms.
Feb 02, 2020 10:54:50 PM org.jpmml.rexp.Main run
INFO: Initializing default Converter
Feb 02, 2020 10:54:50 PM org.jpmml.rexp.Main run
INFO: Initialized org.jpmml.rexp.RangerConverter
Feb 02, 2020 10:54:50 PM org.jpmml.rexp.Main run
INFO: Converting..
Feb 02, 2020 10:54:50 PM org.jpmml.rexp.Main run
SEVERE: Failed to convert
java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for length 4
	at org.jpmml.rexp.RBooleanVector.getValue(RBooleanVector.java:51)
	at org.jpmml.rexp.RangerConverter.encodeSchema(RangerConverter.java:100)
	at org.jpmml.rexp.ModelConverter.encodePMML(ModelConverter.java:69)
	at org.jpmml.rexp.Converter.encodePMML(Converter.java:39)
	at org.jpmml.rexp.Main.run(Main.java:149)
	at org.jpmml.rexp.Main.main(Main.java:97)

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for length 4
	at org.jpmml.rexp.RBooleanVector.getValue(RBooleanVector.java:51)
	at org.jpmml.rexp.RangerConverter.encodeSchema(RangerConverter.java:100)
	at org.jpmml.rexp.ModelConverter.encodePMML(ModelConverter.java:69)
	at org.jpmml.rexp.Converter.encodePMML(Converter.java:39)
	at org.jpmml.rexp.Main.run(Main.java:149)
	at org.jpmml.rexp.Main.main(Main.java:97)
Error in .convert(tempfile, file, converter, converter_classpath, verbose) : 
  The JPMML-R conversion application has failed (error code 1). The Java executable should have printed more information about the failure into its standard output and/or standard error streams
Calls: r2pmml -> tryCatch -> tryCatchList -> main -> .convert
Execution halted