Class JRIClient

All Implemented Interfaces:
RClient

public class JRIClient extends AbstractRClient
R connection implementation that uses the dynamic library interface JRI. For this to work the user must have libjri.so or jri.dll and libr.so in their java.library.path.
Author:
paul
See Also:
  • Constructor Details

    • JRIClient

      public JRIClient()
  • Method Details

    • ready

      public static boolean ready()
    • assign

      public void assign(String argName, double[] arg)
      Parameters:
      argName -
      arg -
    • assign

      public void assign(String arg0, int[] arg1)
    • assign

      public void assign(String sym, String ct)
    • assign

      public void assign(String argName, String[] array)
    • disconnect

      public void disconnect()
      Specified by:
      disconnect in class AbstractRClient
    • eval

      public org.rosuda.REngine.REXP eval(String command)
      Description copied from interface: RClient
      Evaluate the given command
      Parameters:
      command -
      Returns:
    • getLastError

      public String getLastError()
    • isConnected

      public boolean isConnected()
    • retrieveMatrix

      public DoubleMatrix<String,String> retrieveMatrix(String variableName)
      Description copied from interface: RClient
      Get a matrix back out of the R context. Row and Column names are filled in for the resulting object, if they are present.
      Parameters:
      variableName -
      Returns:
    • voidEval

      public void voidEval(String command)