R Extension Execute R Memory Buffered File

Charlotte2706
New Altair Community Member
Good morning community 

I´m trying to solve the following problem:
I want to execute a R code and see the results. But it does'nt work and just shows me "Memory buffered file".
I already tried sink() and return(list(result)) as seen in another Question here.
This is the code I want to execute:
library(EMP)
empChurn(data$churn, data$prediction)
result <- empChurn(data$churn, data$prediction, alpha = 6,beta = 14, clv = 200, d = 10, f = 1)
empChurn(data$churn, data$prediction)
result <- empChurn(data$churn, data$prediction, alpha = 6,beta = 14, clv = 200, d = 10, f = 1)
and this the Log:
Jun 1, 2021 9:10:00 AM INFO: Loading required package: ROCR
Jun 1, 2021 9:10:01 AM INFO: Saving results.
Jun 1, 2021 9:10:01 AM INFO: Process //Local Repository/processes/R-Integration finished successfully after 1 s
Thank you so much for your help
))
Jun 1, 2021 9:10:01 AM INFO: Saving results.
Jun 1, 2021 9:10:01 AM INFO: Process //Local Repository/processes/R-Integration finished successfully after 1 s
Thank you so much for your help

Tagged:
0
Best Answer
-
Hi @Charlotte2706,
Thanks for sharing the R scripts for empChurn. The result is an EMP object returned from the R library, which can only be consumed by R. Only the data frame from R will be returned as example set and re-used by down-stream RapidMiner operators in the workflow.
Attached is the example process for your reference.
HTH!
YY1
Answers
-
Hi @Charlotte2706,
Thanks for sharing the R scripts for empChurn. The result is an EMP object returned from the R library, which can only be consumed by R. Only the data frame from R will be returned as example set and re-used by down-stream RapidMiner operators in the workflow.
Attached is the example process for your reference.
HTH!
YY1 -
Good morning yyhuang :-) Thank you soooooo much for the helpful and quick answer! It worked. I'm really happy :-) Enjoy your day
0