Learn R Programming

analysisPipelines (version 1.0.2)

createPipelineInstance: Create a Pipeline object from a meta-pipeline

Description

Create a Pipeline object from a meta-pipeline

Usage

createPipelineInstance(metaPipelineObj, newParams)

# S4 method for MetaAnalysisPipeline createPipelineInstance(metaPipelineObj, newParams)

Arguments

metaPipelineObj

A MetaAnalysisPipeline object

newParams

Either a nested named list containing all the functions in the pipeline, their arguments and corresponding values (OR) an object of class proto which is a pipeline prototype, with the new values of the arguments set. Refer the getPipelinePrototype method.

Value

A Pipeline object

Details

This method instantiates a Pipeline object (both AnalysisPipeline and StreamingAnalysisPipeline) from a meta-pipeline as well as an object containing the new set of values for the arguments of all the functions in the pipeline.

See Also

Other Package core functions: BaseAnalysisPipeline-class, MetaAnalysisPipeline-class, assessEngineSetUp, checkSchemaMatch, exportAsMetaPipeline, generateOutput, genericPipelineException, getInput, getLoggerDetails, getOutputById, getPipelinePrototype, getPipeline, getRegistry, initDfBasedOnType, initialize,BaseAnalysisPipeline-method, loadMetaPipeline, loadPipeline, loadPredefinedFunctionRegistry, loadRegistry, prepExecution, registerFunction, savePipeline, saveRegistry, setInput, setLoggerDetails, updateObject, visualizePipeline

Examples

Run this code
# NOT RUN {
pipelineObj <- AnalysisPipeline(input = iris)
pipelineObj %>>% univarCatDistPlots(uniCol = "Species") -> pipelineObj
pipelineObj %>>% exportAsMetaPipeline -> exportedMetaPipeline
exportedMetaPipeline %>>%
createPipelineInstance(newParams = exportedMetaPipeline %>>%
 getPipelinePrototype)
# }

Run the code above in your browser using DataLab