Error using R predictor

Hello,

I try to make a SVM model using R in Knime. R Learner is okay, but R predictor returns me an error:

DEBUG     NodeContainerEditPart              R Predictor 0:98 (CONFIGURED)
DEBUG     ExecuteAction                      Creating execution job for 1 node(s)...
DEBUG     NodeContainer                      R Predictor 0:98 has new state: CONFIGURED_MARKEDFOREXEC
DEBUG     NodeContainer                      R Predictor 0:98 has new state: CONFIGURED_QUEUED
DEBUG     NodeContainer                      data_classification 0 has new state: EXECUTING
DEBUG     NodeContainer                      ROOT  has new state: EXECUTING
DEBUG     WorkflowManager                    R Predictor 0:98 doBeforePreExecution
DEBUG     NodeContainer                      R Predictor 0:98 has new state: PREEXECUTE
DEBUG     WorkflowManager                    R Predictor 0:98 doBeforeExecution
DEBUG     NodeContainer                      R Predictor 0:98 has new state: EXECUTING
DEBUG     LocalNodeExecutionJob              R Predictor 0:98 Start execute
DEBUG     WorkflowFileStoreHandlerRepository     Adding handler 8e9ccfd4-979c-46ee-a857-7638388a5274 (R Predictor 0:98: <no directory>) - 3 in total
DEBUG     Buffer                             Opening input stream on file "/tmp/knime_real_dat42616/knime_container_20140124_9097976412907223869.bin.gz", 2 open streams
DEBUG     Buffer                             Closing input stream on "/tmp/knime_dat42616/knime_container_20140124_9097976412907223869.bin.gz", 1 remaining
DEBUG     RLocalPredictorNodeModel           R Command:
setwd("/tmp");
R <- read.csv("/tmp/R-inDataTempFile-6188866030502761583.csv", header = TRUE, row.names = 1);
RDATA<-R
load("/tmp/knime_dat42616/~knime3174829647773126021.R");
RMODEL<-R
R<-cbind(RDATA, predict(RMODEL, RDATA))
write.csv(R, "/tmp/R-outDataTempFile-4786577729530657649.csv", row.names = TRUE);

DEBUG     RLocalPredictorNodeModel           Shell command:
/opt/R-2.15.2/bin/R CMD BATCH --vanilla R-inDataTempFile-1530048671783435296.r R-inDataTempFile-1530048671783435296.r.Rout
DEBUG     CommandExecution                   Launching command: '/opt/R-2.15.2/bin/R CMD BATCH --vanilla R-inDataTempFile-1530048671783435296.r R-inDataTempFile-1530048671783435296.r.Rout'
INFO      CommandExecution                   External commands terminated with exit code: 1
DEBUG     RLocalPredictorNodeModel           Execution of R Script failed with exit code: 1
DEBUG     R Predictor                        reset
ERROR     R Predictor                        Execute failed: Execution of R script failed: Calls: cbind -> predict
DEBUG     R Predictor                        Execute failed: Execution of R script failed: Calls: cbind -> predict
java.lang.IllegalStateException: Execution of R script failed: Calls: cbind -> predict
    at org.knime.ext.r.node.local.RLocalPredictorNodeModel.execute(RLocalPredictorNodeModel.java:193)
    at org.knime.core.node.NodeModel.executeModel(NodeModel.java:556)
    at org.knime.core.node.Node.invokeNodeModelExecute(Node.java:1069)
    at org.knime.core.node.Node.execute(Node.java:924)
    at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:418)
    at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:98)
    at org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:182)
    at org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:113)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:123)
    at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:238)
DEBUG     WorkflowManager                    R Predictor 0:98 doBeforePostExecution
DEBUG     NodeContainer                      R Predictor 0:98 has new state: POSTEXECUTE
DEBUG     WorkflowManager                    R Predictor 0:98 doAfterExecute - failure
DEBUG     R Predictor                        reset
DEBUG     R Predictor                        clean output ports.
DEBUG     WorkflowFileStoreHandlerRepository     Removing handler 8e9ccfd4-979c-46ee-a857-7638388a5274 (R Predictor 0:98: <no directory>) - 2 remaining
DEBUG     NodeContainer                      R Predictor 0:98 has new state: IDLE
DEBUG     R Predictor                        Configure succeeded. (R Predictor)
DEBUG     NodeContainer                      R Predictor 0:98 has new state: CONFIGURED
DEBUG     NodeContainer                      data_classification 0 has new state: CONFIGURED
DEBUG     NodeContainer                      ROOT  has new state: IDLE

I think the problem comes from my dataset because I also tried with the model given in a Knime example but the result is the same.

Using R stand alone I don't have any error.

May anyone help?

Thank you

Nicolas

Hi Nicolas, can you post an exampel workflow?  That would make investigating your problem muh easier. 

Regards,

Aaron

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