createPipelineInstance {analysisPipelines}R Documentation

Create a Pipeline object from a meta-pipeline

Description

Create a Pipeline object from a meta-pipeline

Usage

createPipelineInstance(metaPipelineObj, newParams)

## S4 method for signature '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.

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.

Value

A Pipeline object

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

## Not run: 
pipelineObj <- AnalysisPipeline(input = iris)
pipelineObj %>>% univarCatDistPlots(uniCol = "Species") -> pipelineObj
pipelineObj %>>% exportAsMetaPipeline -> exportedMetaPipeline
exportedMetaPipeline %>>%
createPipelineInstance(newParams = exportedMetaPipeline %>>%
 getPipelinePrototype)

## End(Not run)

[Package analysisPipelines version 1.0.2 Index]