R script evaluation failed

Hi all,

I need your help for running an R script in KNIME. After solving all problems one by one, I am stuck at one point and I can’t go on. I installed R, the Rserve and the packages I needed to run the script but the evaluation fails and I get the following error:

ERROR: R evaluation failed.: "knime.tmp.ret<-NULL;printError<-function(e) message(paste(‘Error:’,conditionMessage(e)));for(exp in tryCatch(parse(text=knime.tmp.script),error=printError)){tryCatch(knime.tmp.ret<-withVisible(eval(exp)),error=printError)
if(!is.null(knime.tmp.ret)) {if(knime.tmp.ret$visible) tryCatch(print(knime.tmp.ret$value),error=printError)}};rm(knime.tmp.script,exp,printError);knime.tmp.ret$value"ERROR: R evaluation failed.: "knime.tmp.ret<-NULL;printError<-function(e) message(paste(‘Error:’,conditionMessage(e)));for(exp in tryCatch(parse(text=knime.tmp.script),error=printError)){tryCatch(knime.tmp.ret<-withVisible(eval(exp)),error=printError)
if(!is.null(knime.tmp.ret)) {if(knime.tmp.ret$visible) tryCatch(print(knime.tmp.ret$value),error=printError)}};rm(knime.tmp.script,exp,printError);knime.tmp.ret$value"ERROR: eval failedERROR: Could not capture output of command.ERROR: R evaluation failed.: "sink();sink(type=‘message’)
close(knime.stdout.con);close(knime.stderr.con)
knime.output.ret<-c(paste(knime.stdout,collapse=‘\n’), paste(knime.stderr,collapse=‘\n’))
knime.output.ret"ERROR: R evaluation failed.: "sink();sink(type=‘message’)
close(knime.stdout.con);close(knime.stderr.con)
knime.output.ret<-c(paste(knime.stdout,collapse=‘\n’), paste(knime.stderr,collapse=‘\n’))
knime.output.ret"ERROR: eval failed, request status: error code: 127ERROR: Could not execute internal command.ERROR: R evaluation failed.: "dev.off()"ERROR: R evaluation failed.: "dev.off()"ERROR: eval failed, request status: error code: 127

What should I do to solve it?

I hope to hear soon from you and wish you a nice rest of the day!

Cheers,

Silvia

Hey @ChineS,

This StackOverflow thread may provide some insight:

Cheers,

@sjporter

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.