org.rproject.ant
Class RRun

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.rproject.ant.RTask
              extended by org.rproject.ant.RRun
All Implemented Interfaces:
java.lang.Cloneable, MessageListener

public class RRun
extends RTask

Ant task that runs R code

Example :

<r-run>rnorm(10)</r-run>

Author:
Romain Francois

Field Summary
private  java.lang.String code
          Code to be run
 
Fields inherited from class org.rproject.ant.RTask
buffer, failonerror, failure, loop, project, R
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location
 
Constructor Summary
RRun()
           
 
Method Summary
 void addText(java.lang.String text)
           
 void execute()
          Runs the code
 void setCode(java.lang.String code)
           
 
Methods inherited from class org.rproject.ant.RTask
fails, flush, run_, run, send, setFailonerror
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

private java.lang.String code
Code to be run

Constructor Detail

RRun

public RRun()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Runs the code

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

addText

public void addText(java.lang.String text)
Parameters:
text - set the code to be run by reading the content of the <r-run> tag

setCode

public void setCode(java.lang.String code)
Parameters:
code - set the code to be run by reading the code attribute of the <r-run> tag


Copyright © 2009, Romain Francois francoisromain@free.fr