public class RConsole extends java.lang.Object implements org.rosuda.JRI.RMainLoopCallbacks
| Constructor and Description |
|---|
RConsole()
Construct the R Console class and initialize the buffer containing the
text.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the console.
|
java.lang.String |
getConsoleOutput()
After an R session has ended, get a String representation of the output
of the R session.
|
void |
rBusy(org.rosuda.JRI.Rengine re,
int which)
Print a busy message.
|
java.lang.String |
rChooseFile(org.rosuda.JRI.Rengine re,
int newFile)
Choose a file.
|
void |
rFlushConsole(org.rosuda.JRI.Rengine re)
Flush the console.
|
void |
rLoadHistory(org.rosuda.JRI.Rengine re,
java.lang.String filename)
Load the history.
|
java.lang.String |
rReadConsole(org.rosuda.JRI.Rengine re,
java.lang.String prompt,
int addToHistory)
Read from the console.
|
void |
rSaveHistory(org.rosuda.JRI.Rengine re,
java.lang.String filename)
Save history.
|
void |
rShowMessage(org.rosuda.JRI.Rengine re,
java.lang.String message)
Show a message.
|
void |
rWriteConsole(org.rosuda.JRI.Rengine re,
java.lang.String text,
int oType)
Callback that is called when text is available from the R Engine and
should be written to the console.
|
public RConsole()
public void clear()
public java.lang.String getConsoleOutput()
public void rWriteConsole(org.rosuda.JRI.Rengine re, java.lang.String text, int oType)
rWriteConsole in interface org.rosuda.JRI.RMainLoopCallbacksre - The R enginetext - The text to by written.oType - Ignored in this method.public void rBusy(org.rosuda.JRI.Rengine re, int which)
rBusy in interface org.rosuda.JRI.RMainLoopCallbacksre - The R enginewhich - Unknown.public java.lang.String rReadConsole(org.rosuda.JRI.Rengine re, java.lang.String prompt, int addToHistory)
rReadConsole in interface org.rosuda.JRI.RMainLoopCallbacksre - The R engineprompt - The promptaddToHistory - unknownpublic void rShowMessage(org.rosuda.JRI.Rengine re, java.lang.String message)
rShowMessage in interface org.rosuda.JRI.RMainLoopCallbacksre - The R enginemessage - The messagepublic java.lang.String rChooseFile(org.rosuda.JRI.Rengine re, int newFile)
rChooseFile in interface org.rosuda.JRI.RMainLoopCallbacksre - The R enginenewFile - unusedpublic void rFlushConsole(org.rosuda.JRI.Rengine re)
rFlushConsole in interface org.rosuda.JRI.RMainLoopCallbacksre - The R enginepublic void rLoadHistory(org.rosuda.JRI.Rengine re, java.lang.String filename)
rLoadHistory in interface org.rosuda.JRI.RMainLoopCallbacksre - The R enginefilename - The file that contains the history.public void rSaveHistory(org.rosuda.JRI.Rengine re, java.lang.String filename)
rSaveHistory in interface org.rosuda.JRI.RMainLoopCallbacksre - The R enginefilename - the file in which to save the history.