Dear all,
Thanks for the clarifications so far. The solution is as follows.
What works is indeed sending stderr to dev/null with 2>&- in the tool.xml file. This means running R straight as an R-script.
This is ofcourse a drastic measure, but this way you don't need a wrapper.