Use R function get Error"non-character argument"

Dear all,

I am trying to use R Snippet to run a R code using a saved R function. However, it gives me the Error message “non-character argument”. Going through forum, I found that jemand suggested to change “data.frame” to “data.table”, this didnt solve the problem.

The R code and function with same data I used here can be running without problem in R.

I uploaded here the workflow, if you can not see the R code and data here, please tell me, I will upload these info sparately.

BMCProportion.knwf (42.1 KB)

I hope somebody can help me.
Thank you very much.

Shu

Hi @ShuLiu
I took a quick look but it doesn’t seem the data is included with the workflow.

If it runs fine in directly in R outside of KNIME that seems to suggest either an issue with the “new variable” path you create and pass to the source() function in R or possibly a column is being mapped to the wrong type in the table reader.

Is there anything else that would be different between the two settings?
Could you share the full error message you get? I’m assuming it’s the makePlot function throwing the error here but unsure from your description.

2 Likes