public class RExecutor extends Object
Constructor | Description |
---|---|
RExecutor() |
Modifier and Type | Method | Description |
---|---|---|
static int |
executeFromClasspath(String rScriptName,
String... arguments) |
Executes the given R script that is stored in a file on the classpath.
|
static int |
executeFromFile(File scriptFile,
String... arguments) |
Executes the given R script that is stored in a file by a call to Rscript.
|
public static int executeFromClasspath(String rScriptName, String... arguments)
rScriptName
- the fully qualified name of the classpath resource of the scriptarguments
- any arguments required by the scriptpublic static int executeFromFile(File scriptFile, String... arguments)
scriptFile
- the file object for the scriptarguments
- any arguments required by the script