Interface RConnection
- 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
-
Method Details
-
execute
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
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.
-