{"action":"created","issue":{"url":"https://api.github.com/repos/jpmml/r2pmml/issues/28","repository_url":"https://api.github.com/repos/jpmml/r2pmml","labels_url":"https://api.github.com/repos/jpmml/r2pmml/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/jpmml/r2pmml/issues/28/comments","events_url":"https://api.github.com/repos/jpmml/r2pmml/issues/28/events","html_url":"https://github.com/jpmml/r2pmml/issues/28","id":255330821,"node_id":"MDU6SXNzdWUyNTUzMzA4MjE=","number":28,"title":"Failing to convert when using r2pmml and ranger","user":{"login":"pedrodia","id":11254709,"node_id":"MDQ6VXNlcjExMjU0NzA5","avatar_url":"https://avatars0.githubusercontent.com/u/11254709?v=4","gravatar_id":"","url":"https://api.github.com/users/pedrodia","html_url":"https://github.com/pedrodia","followers_url":"https://api.github.com/users/pedrodia/followers","following_url":"https://api.github.com/users/pedrodia/following{/other_user}","gists_url":"https://api.github.com/users/pedrodia/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrodia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrodia/subscriptions","organizations_url":"https://api.github.com/users/pedrodia/orgs","repos_url":"https://api.github.com/users/pedrodia/repos","events_url":"https://api.github.com/users/pedrodia/events{/privacy}","received_events_url":"https://api.github.com/users/pedrodia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-09-05T16:10:00Z","updated_at":"2018-06-22T22:28:37Z","closed_at":"2017-09-08T20:34:09Z","author_association":"NONE","body":"Hi,\r\n\r\nI am not sure if anything changed in the latest ranger implementation, but I cannot even execute the example code for the iris dataset:\r\n\r\n```\r\nlibrary(\"ranger\")\r\nlibrary(\"r2pmml\")\r\ndata(iris)\r\n\r\niris.ranger = ranger(Species ~ ., data = iris, num.trees = 7, write.forest = TRUE)\r\nprint(iris.ranger)\r\n\r\nr2pmml(iris.ranger, \"iris_ranger.pmml\", dataset = iris)\r\n```\r\n\r\nI get the following exception:\r\n\r\n```\r\nSep 05, 2017 11:57:41 AM org.jpmml.rexp.Main run\r\nINFO: Parsing RDS..\r\nSep 05, 2017 11:57:41 AM org.jpmml.rexp.Main run\r\nINFO: Parsed RDS in 6 ms.\r\nSep 05, 2017 11:57:41 AM org.jpmml.rexp.Main run\r\nINFO: Initializing default Converter\r\nSep 05, 2017 11:57:41 AM org.jpmml.rexp.Main run\r\nINFO: Initialized org.jpmml.rexp.RangerConverter\r\nSep 05, 2017 11:57:41 AM org.jpmml.rexp.Main run\r\nINFO: Converting..\r\nSep 05, 2017 11:57:41 AM org.jpmml.rexp.Main run\r\nSEVERE: Failed to convert\r\njava.lang.IllegalArgumentException: Sepal.Length\r\n\tat org.jpmml.rexp.RVector.getValue(RVector.java:96)\r\n\tat org.jpmml.rexp.RVector.getValue(RVector.java:72)\r\n\tat org.jpmml.rexp.RangerConverter.encodeSchema(RangerConverter.java:117)\r\n\tat org.jpmml.rexp.ModelConverter.encodePMML(ModelConverter.java:74)\r\n\tat org.jpmml.rexp.ModelConverter.encodePMML(ModelConverter.java:70)\r\n\tat org.jpmml.rexp.Main.run(Main.java:149)\r\n\tat org.jpmml.rexp.Main.main(Main.java:97)\r\n\r\nException in thread \"main\" java.lang.IllegalArgumentException: Sepal.Length\r\n\tat org.jpmml.rexp.RVector.getValue(RVector.java:96)\r\n\tat org.jpmml.rexp.RVector.getValue(RVector.java:72)\r\n\tat org.jpmml.rexp.RangerConverter.encodeSchema(RangerConverter.java:117)\r\n\tat org.jpmml.rexp.ModelConverter.encodePMML(ModelConverter.java:74)\r\n\tat org.jpmml.rexp.ModelConverter.encodePMML(ModelConverter.java:70)\r\n\tat org.jpmml.rexp.Main.run(Main.java:149)\r\n\tat org.jpmml.rexp.Main.main(Main.java:97)\r\n Show Traceback\r\nError in .convert(tempfile, file, converter, converter_classpath, verbose) : 1\r\n```\r\n\r\nDo you know what could be causing this issue?  \r\nI am using R version 3.4.1 (2017-06-30).\r\n"},"comment":{"url":"https://api.github.com/repos/jpmml/r2pmml/issues/comments/399599859","html_url":"https://github.com/jpmml/r2pmml/issues/28#issuecomment-399599859","issue_url":"https://api.github.com/repos/jpmml/r2pmml/issues/28","id":399599859,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTU5OTg1OQ==","user":{"login":"vruusmann","id":3462679,"node_id":"MDQ6VXNlcjM0NjI2Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/3462679?v=4","gravatar_id":"","url":"https://api.github.com/users/vruusmann","html_url":"https://github.com/vruusmann","followers_url":"https://api.github.com/users/vruusmann/followers","following_url":"https://api.github.com/users/vruusmann/following{/other_user}","gists_url":"https://api.github.com/users/vruusmann/gists{/gist_id}","starred_url":"https://api.github.com/users/vruusmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vruusmann/subscriptions","organizations_url":"https://api.github.com/users/vruusmann/orgs","repos_url":"https://api.github.com/users/vruusmann/repos","events_url":"https://api.github.com/users/vruusmann/events{/privacy}","received_events_url":"https://api.github.com/users/vruusmann/received_events","type":"User","site_admin":false},"created_at":"2018-06-22T22:28:37Z","updated_at":"2018-06-22T22:28:37Z","author_association":"MEMBER","body":"@codemasta14 This issue was fixed in jpmml/jpmml-r@33fa655 - see the above log message(s).\r\n\r\nYour issue must be something different. But it's impossible to be any more specific until you've shared the full stack trace of the Java exception."}}
{"actor":{"display_login":"vruusmann"}}