public class RUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Class<?>[] |
ALLOWED_PARAMETER_CLASSES |
Constructor and Description |
---|
RUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
inputSlotsToR(StringBuilder code,
Map<String,Path> inputSlotPaths,
List<JIPipeInputDataSlot> inputSlots) |
static void |
installInputLoaderCode(StringBuilder code) |
static void |
installOutputGeneratorCode(StringBuilder code) |
static void |
installPostprocessorCode(StringBuilder code) |
static void |
outputSlotsToR(StringBuilder code,
List<JIPipeOutputDataSlot> outputSlots,
Map<String,Path> outputSlotPaths) |
static void |
parametersToR(StringBuilder code,
JIPipeParameterCollection parameterCollection)
Converts parameters into R code.
|
static void |
runR(Path scriptFile,
REnvironment environment,
JIPipeProgressInfo progressInfo) |
static void |
runR(String script,
REnvironment environment,
JIPipeProgressInfo progressInfo) |
static void |
textAnnotationsToR(StringBuilder code,
Collection<JIPipeTextAnnotation> annotations)
Converts annotations into R code.
|
public static Class<?>[] ALLOWED_PARAMETER_CLASSES
public static void textAnnotationsToR(StringBuilder code, Collection<JIPipeTextAnnotation> annotations)
code
- the codeannotations
- the annotationspublic static void parametersToR(StringBuilder code, JIPipeParameterCollection parameterCollection)
code
- the codeparameterCollection
- the parameterspublic static void inputSlotsToR(StringBuilder code, Map<String,Path> inputSlotPaths, List<JIPipeInputDataSlot> inputSlots)
public static void outputSlotsToR(StringBuilder code, List<JIPipeOutputDataSlot> outputSlots, Map<String,Path> outputSlotPaths)
public static void installInputLoaderCode(StringBuilder code)
public static void installOutputGeneratorCode(StringBuilder code)
public static void installPostprocessorCode(StringBuilder code)
public static void runR(String script, REnvironment environment, JIPipeProgressInfo progressInfo)
public static void runR(Path scriptFile, REnvironment environment, JIPipeProgressInfo progressInfo)
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.