The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Where do the results of R-Scripts go? Configuration problem for RapidMiner Studio only?
Hi there,
I am struggling with exporting results from the Execute R Script Operator.
INFO: No filename given for result file, using stdout for logging results!
Mar 04, 2020 10:36:58 AM com.rapidminer.Process execute
INFO: Process //Aggr/R_test starts
Mar 04, 2020 10:36:58 AM com.rapidminer.Process saveResults
INFO: Saving results.
Mar 04, 2020 10:36:58 AM com.rapidminer.Process execute
I am struggling with exporting results from the Execute R Script Operator.
Here is how the script and the process look like :
After the process is successfully done, I only get The result
Memory buffered file
However, there is no file written.
The RapidMiner log only says
Mar 04, 2020 10:36:58 AM com.rapidminer.Process execute
INFO: Process //Aggr/R_test starts
Mar 04, 2020 10:36:58 AM com.rapidminer.Process saveResults
INFO: Saving results.
Mar 04, 2020 10:36:58 AM com.rapidminer.Process execute
INFO: Process //Aggr/R_test finished successfully after 0 s
Since the code is running without any errors and with the expected results in R-Studio, I think it must be a configuration issue
What did I do wrong?
Tagged:
1
Best Answer
-
yyhuang Administrator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 364 RM Data ScientistHi @MPB_,
It is easy to get the location of your output file.
Just add getwd() in your scripts
Check your Log view, there should be a temp folder that store your sink file.
Why?
Because in your scripts, you used a relative location instead of specifying a physical location in your system. I would suggest using a complete file path like "C:\\Users\\MPB\Documents\\Routput\\outputsink.txt" for the output text file.sink("where_is_that_text.txt")
5
Answers
So, you can view your model summary in "Log" window of rapidminer (VIEW --> Show Panel --> Log). The output of R script when connected to result port will only display example sets and others like models will be displayed as memory buffer files. I think you should use a return function if you are planning to output a data frame.
@yyhuang can help you more with this.
Varun
https://www.varunmandalapu.com/
Be Safe. Follow precautions and Maintain Social Distancing
The sink function works perfectly fine in R(studio) and writes a new file, but does not in RapidMiner.
You made my Day! Thank you again