rvl.swv
Class REngine

java.lang.Object
  extended by rvl.swv.AbstractEngine
      extended by rvl.swv.REngine
All Implemented Interfaces:
EngineInterface

public class REngine
extends AbstractEngine

Engine for R code. Present version suppresses all echoing of code, and all output produced by a code chunk comes at the end. This is not Sweave's behavior.


Field Summary
 
Fields inherited from class rvl.swv.AbstractEngine
codeExt, commentEnd, commentStart, endCode, engineName, medExt, okfigfmts, outExt, startupCode
 
Constructor Summary
REngine()
           
 
Method Summary
 void closeFig()
          Put code to close the graphics file created by setupFig
 void putExpr(java.lang.String expr)
          Evaluate an expression and put it in the output stream
 void putSeparator(java.lang.String text)
          Put code that will add the given text in a separate line of the engine's output.
 FigFile setupFig(java.lang.String chunkName)
          Put code that will set up a file to receive figure output This method uses the contents of AbstractEngine.okfigfmts and negotiates with the current FileInterface to determine what figure format to actually use, and how to size it.
 
Methods inherited from class rvl.swv.AbstractEngine
closeCodeFile, deleteCodeFile, getFileNames, openCodeFile, postProcess, putCode, putComment, putStartup, runCode, setBinary, setParents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

REngine

public REngine()
Method Detail

putSeparator

public void putSeparator(java.lang.String text)
Description copied from class: AbstractEngine
Put code that will add the given text in a separate line of the engine's output. This is used by the parent to keep track of beginnings and ends of output chunks.

Specified by:
putSeparator in interface EngineInterface
Overrides:
putSeparator in class AbstractEngine

putExpr

public void putExpr(java.lang.String expr)
Description copied from class: AbstractEngine
Evaluate an expression and put it in the output stream

Specified by:
putExpr in interface EngineInterface
Overrides:
putExpr in class AbstractEngine

setupFig

public FigFile setupFig(java.lang.String chunkName)
Description copied from class: AbstractEngine
Put code that will set up a file to receive figure output This method uses the contents of AbstractEngine.okfigfmts and negotiates with the current FileInterface to determine what figure format to actually use, and how to size it. The extending class should call this as a superclass method, then use the properties of the returned object as needed in outputting the needed setup code for the figure

Specified by:
setupFig in interface EngineInterface
Overrides:
setupFig in class AbstractEngine
Returns:
null if no format can be found; otherwise the object can be used by the extending class to finish setting up the figure.

closeFig

public void closeFig()
Description copied from class: AbstractEngine
Put code to close the graphics file created by setupFig

Specified by:
closeFig in interface EngineInterface
Overrides:
closeFig in class AbstractEngine