Options

R Extension Execute R Memory Buffered File

Charlotte2706Charlotte2706 Member Posts: 2 Newbie
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)

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 :)))

Best Answer

  • Options
    yyhuangyyhuang Administrator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 364 RM Data Scientist
    Solution Accepted
    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!

    YY

Answers

  • Options
    Charlotte2706Charlotte2706 Member Posts: 2 Newbie
    Good morning yyhuang :-) Thank you soooooo much for the helpful and quick answer! It worked. I'm really happy :-) Enjoy your day
Sign In or Register to comment.