public class RScript extends Object
| Constructor and Description |
|---|
RScript()
Construct an R script object
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(String command)
Add a command to the r script.
|
void |
append(String command,
Object... args)
Add a command to the r script as a template
|
void |
copyFile(String fromPath,
String toPath)
Helper function to copy a file
|
void |
deleteFile(String path)
Helper function to delete a file
|
String |
execute()
Execute the R script.
|
String |
execute(String scriptPathName)
Execute the R script.
|
String |
getErrors() |
String |
getOutput() |
String |
getR_COMMAND() |
String |
getResult() |
void |
setR_COMMAND(String r_COMMAND) |
String |
toString()
Show the contents of the R script that has been created
|
public String R_COMMAND
public String getErrors()
public String getOutput()
public String getResult()
public String getR_COMMAND()
public void setR_COMMAND(String r_COMMAND)
public void append(String command)
command - public void append(String command, Object... args)
command - args - a variable list of argumentspublic String execute() throws RScriptException
RScriptExceptionpublic String execute(String scriptPathName) throws RScriptException
RScriptExceptionpublic void copyFile(String fromPath, String toPath) throws Exception
Exceptionpublic void deleteFile(String path) throws Exception
ExceptionCopyright © 2015. All Rights Reserved.