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
43 stars 25 forks source link

Fix Column Names node should also fix RGG incompatible characters like "&" #76

Open stoeter opened 8 years ago

stoeter commented 8 years ago

If the data table contains an "&" (apparently some MT data tables do that) then the RGG fails with the error message that the RGG template has an error/ is invalid. I guess the same happens for "<" and ">".

Fix Column Names node should have an option to also fix characters that are incompatible with RGG. Currently the node does this: "+" is replace by "Plus", "-" is replace by "Minus", "*" is replace by "Times", "%" is replace by "Percent", ":" is replace by "DivBy", "/" is replace by "DivBy".

Optionally also this should be done: "&" is replace by "And", "<" is replace by "Smaller", ">" is replace by "Greater",

stoeter commented 8 years ago

It seems the the greek micro "µ" also produces some problems: ERROR R Plot 2:156:163 Execute failed: Syntax error: Error in parse(text = knime.script.in) : invalid multibyte character in parser at line 21

Though I have so say that this error occored on a KNIME verstion 2.12.1. No clue of that still gives an error!?

If yes then this should be includes as well: "µ" is replace by "Micro",