public final class RScriptExecutor extends ScriptExecutor
externalScriptExecutableName, ignoreExceptions
Constructor and Description |
---|
RScriptExecutor() |
RScriptExecutor(boolean ensureExecutableExists) |
Modifier and Type | Method and Description |
---|---|
void |
addArgs(java.lang.Object... args)
Adds args to the end of the Rscript command line.
|
void |
addLibrary(RScriptLibrary library) |
void |
addScript(java.io.File script) |
void |
addScript(Resource script) |
boolean |
exec() |
java.lang.String |
getApproximateCommandLine()
Return a (not necessarily executable) string representing the command line for this executor for error
reporting purposes.
|
RScriptExecutorException |
getScriptException(java.lang.String message)
Return an exception specific to this executor type, to be thrown on error conditions.
|
executableMissing, executeCuratedArgs, externalExecutableExists, setIgnoreExceptions
public RScriptExecutor()
public RScriptExecutor(boolean ensureExecutableExists)
ensureExecutableExists
- throw if the RScript executable cannot be locatedpublic void addLibrary(RScriptLibrary library)
public void addScript(Resource script)
public void addScript(java.io.File script)
public void addArgs(java.lang.Object... args)
args
- the args.java.lang.NullPointerException
- if any of the args are null.public java.lang.String getApproximateCommandLine()
ScriptExecutor
getApproximateCommandLine
in class ScriptExecutor
public RScriptExecutorException getScriptException(java.lang.String message)
getScriptException
in class ScriptExecutor
message
- public boolean exec()