R Extension Execute R Memory Buffered File

Charlotte2706
Charlotte2706 New Altair Community Member
edited November 2024 in Community Q&A
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 :)))

Tagged:

Best Answer

  • YYH
    YYH
    Altair Employee
    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!

    YY

Answers

  • YYH
    YYH
    Altair Employee
    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!

    YY
  • Charlotte2706
    Charlotte2706 New Altair Community Member
    Good morning yyhuang :-) Thank you soooooo much for the helpful and quick answer! It worked. I'm really happy :-) Enjoy your day

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.