1 package org.rosuda.REngine;
3 /** interface defining delegate methods used by {@link REngine} to forward output callbacks from R. */
4 public interface REngineOutputInterface {
5 /** called when R prints output to the console.
6 * @param eng calling engine
7 * @param text text to display in the console
8 * @param oType output type (0=regular, 1=error/warning)
10 public void RWriteConsole(REngine eng, String text, int oType);
12 /** called when R wants to show a warning/error message box (not console-related).
13 * @param eng calling engine
14 * @param text text to display in the message
16 public void RShowMessage(REngine eng, String text);
18 /** called by R to flush (display) any pending console output.
19 * @param eng calling engine */
20 public void RFlushConsole(REngine eng);