knime-mpicbg / knime-scripting

knime-scripting includes scripting extensions for KNIME to integrate R, Matlab, Python and Groovy scripts. These extensions include a collection of nodes to develop and deploy templates in the respective languages.
https://github.com/knime-mpicbg/knime-scripting/wiki
Other
44 stars 25 forks source link

Dose Response node fails with column names containing 'µ' und Windows #103

Open niederle opened 4 years ago

niederle commented 4 years ago

If the concentration column name contains the character 'µ' the node fails under Windows.

ERROR Dose Response (R) 0:256 Execute failed: Failed to evaluate the script: Error : Error in FUN(X[[i]], ...) : only defined on a data frame with all numeric variables

Example table: dose_response_bug.table.zip

niederle commented 4 years ago

Note: It's the fixEncoding() method, which makes a mess out of the 'µ' character under windows. Have to find out why it's platform dependent. Without, it does not work either:

ERROR Dose Response (R) 0:13 Execute failed: Failed to parse the script: Syntax error: Error in parse(text = knime.script.in) : invalid multibyte character in parser at line 362

niederle commented 4 years ago

Cannox fix. Guess it is an issue with the Rserve. See https://github.com/s-u/REngine/issues/24. Issue is true for everything which is transferred to R (column names, row id, table content, ...) It's not a good idea to check everything for UTF-8 before the transfer.