adams.flow.core
Class RHelper

java.lang.Object
  extended by adams.flow.core.RHelper

public class RHelper
extends Object

A helper class for things R related, specifically, JRI and Rserve.

Version:
$Revision$
Author:
rsmith

Constructor Summary
RHelper()
           
 
Method Summary
static String getRSetup_RHOME(AbstractActor caller)
          Returns the value of R_HOME as entered into the RSetup actor (the one nearest to the calling actor) if it exists, if it does not then it will return null.
static org.rosuda.REngine.Rserve.RConnection newConnection(int port)
          Creates a new connection to Rserve.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RHelper

public RHelper()
Method Detail

getRSetup_RHOME

public static String getRSetup_RHOME(AbstractActor caller)
Returns the value of R_HOME as entered into the RSetup actor (the one nearest to the calling actor) if it exists, if it does not then it will return null.

Parameters:
caller - a reference to the object that called this
Returns:
the String value of R_HOME or null.

newConnection

public static org.rosuda.REngine.Rserve.RConnection newConnection(int port)
Creates a new connection to Rserve. Will try to launch Rserve if it's not already running.

Parameters:
port - the port to connect on
Returns:
the connection to Rserve or null if there was an error


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.