All Known Implementing Classes:
RConnectionImpl

public interface RConnection
Encapsulate the access to the R engine. Is responsible for the initialization of the R engine and the execution of R commands.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    assign(String name, double[] array)
    Stores an array in a R variable.
    Vector<org.rosuda.JRI.REXP>
    execute(String rCommands)
    Executes the command(s) in R.
     
  • Method Details

    • execute

      Vector<org.rosuda.JRI.REXP> execute(String rCommands)
      Executes the command(s) in R.
      Parameters:
      rCommands - One or more valid commands in R, separated by \n.
      Returns:
      result Result returned from R. Empty if no result was returned.
    • assign

      void assign(String name, double[] array)
      Stores an array in a R variable.
      Parameters:
      name - Name of the R variable in which the array is stored.
      array - Array to store in an R variable.
    • getLastConsoleMessage

      String getLastConsoleMessage()
      Returns:
      the last message on the console of the connected R engine.