@Service public class RScriptRunner extends Object implements ScriptRunner
| Constructor and Description |
|---|
RScriptRunner(RScriptExecutor rScriptExecutor,
FileStore fileStore,
org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
runRScript(File script,
ROutputHandler outputHandler)
Run an R script
|
void |
runRScript(String templateName,
Map<String,Object> parameters,
ROutputHandler outputHandler)
Run an R script as freemarker template
|
void |
runRScript(String script,
ROutputHandler outputHandler)
Run an R script as string
|
void |
runRScript(String scriptName,
String templateName,
Map<String,Object> parameters,
ROutputHandler outputHandler)
Run an R script as freemarker template
|
String |
runScript(Script script,
Map<String,Object> parameters) |
@Autowired public RScriptRunner(RScriptExecutor rScriptExecutor, FileStore fileStore, org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfig)
public void runRScript(String templateName, Map<String,Object> parameters, ROutputHandler outputHandler) throws IOException, freemarker.template.TemplateException
scriptName - template - parameters - IOExceptionfreemarker.template.TemplateExceptionpublic void runRScript(String scriptName, String templateName, Map<String,Object> parameters, ROutputHandler outputHandler) throws IOException, freemarker.template.TemplateException
scriptName - template - parameters - IOExceptionfreemarker.template.TemplateExceptionpublic void runRScript(String script, ROutputHandler outputHandler) throws FileNotFoundException, IOException
script - outputHandler - IOExceptionFileNotFoundExceptionpublic String runScript(Script script, Map<String,Object> parameters)
runScript in interface ScriptRunnerpublic void runRScript(File script, ROutputHandler outputHandler)
script - outputHandler - Copyright © 2016. All Rights Reserved.