🎉 🎉   RAPIDMINER 9.5 BETA IS OUT!!!   🎉 🎉

GRAB THE HOTTEST NEW BETA OF RAPIDMINER STUDIO, SERVER, AND RADOOP. LET US KNOW WHAT YOU THINK!

CLICK HERE TO DOWNLOAD

🦉 🎤   RapidMiner Wisdom 2020 - CALL FOR SPEAKERS   🦉 🎤

We are inviting all community members to submit proposals to speak at Wisdom 2020 in Boston.


Whether it's a cool RapidMiner trick or a use case implementation, we want to see what you have.
Form link is below and deadline for submissions is November 15. See you in Boston!

CLICK HERE TO GO TO ENTRY FORM

R Extension - "Script terminated abnormally"

MBMMBM Member Posts: 23 Contributor I
edited November 2018 in Help

Hey,

 

I want to have a Google Map in Rapidminer by using the R Extension. I read here in the Community that it would be possible to display latitutde and longitude data on a map with the R Extension. First I just want to display a map in RM. And in R it is possible with this code:

 

library(ggmap)
library(mapproj)
map <- get_map(location = 'Europe', zoom = 4)
ggmap(map)

But when I try it with the "Execute R" operator in RapidMiner it doesn't work at all. All I get is this

 

Exception: com.rapidminer.operator.OperatorException
Message: Script terminated abnormally.
Stack trace:

com.rapidminer.operator.scripting.AbstractScriptRunner.run(AbstractScriptRunner.java:162)
com.rapidminer.operator.scripting.AbstractScriptingLanguageOperator.doWork(AbstractScriptingLanguageOperator.java:90)
com.rapidminer.operator.scripting.r.RScriptingOperator.doWork(RScriptingOperator.java:73)
com.rapidminer.operator.Operator.execute(Operator.java:1002)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:76)
com.rapidminer.operator.ExecutionUnit$3.run(ExecutionUnit.java:811)
com.rapidminer.operator.ExecutionUnit$3.run(ExecutionUnit.java:806)
java.security.AccessController.doPrivileged(Native Method)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:806)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:392)
com.rapidminer.operator.Operator.execute(Operator.java:1002)
com.rapidminer.Process.run(Process.java:1195)
com.rapidminer.Process.run(Process.java:1091)
com.rapidminer.Process.run(Process.java:1044)
com.rapidminer.Process.run(Process.java:1039)
com.rapidminer.Process.run(Process.java:1029)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)

The example Processes with R in RapidMiner work just fine without any problem. What do I need to do? Am I missing something?

 

Best wishes

 

Marcel

Tagged:

Answers

  • Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761   Unicorn

    Hi, you can't display the Google Map in RapidMiner Studio. Your error might be related to "ggmap(map)"

     

    That said, you can encode the Lat/Longs and create a Google Map in HTML all within in RapidMiner. @mschmitz has some RM process to do that and I wrote an article on how to encode Lat/Longs using OpenStreetMap here

Sign In or Register to comment.