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