R Node console error and warning?

I have several R Nodes and sometimes they fail for various reasons.  WIth my Java nodes I figured out a way to send messages to the console, even in the middle of processing.  Can this be done with R?


For the curious, here's the code that lets me do this from Java...

// Your custom imports:
import org.knime.core.node.NodeLogger;

// Your custom variables:
NodeLogger logger = NodeLogger.getLogger(AbstractJSnippet.class);

// Enter your code here:

logger.error("Some error");
logger.warning("Some warning");


Hi Shawne,

I'm not certain that logging directly to the console from the R snippet node is possible, but this workflow should do what you need: https://tech.knime.org/forum/r-statistics-nodes-and-integration/r-snippet-error-levels#comment-46576