Interface IRConnection

  • All Known Subinterfaces:
    RRegressionConnection
    All Known Implementing Classes:
    RRegressionConnectionImpl

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

      • execute

        Vector<org.rosuda.REngine.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.