writeWorkflow: Export workflow to Makefile

View source: R/genMakefile.R

writeWorkflowR Documentation

Export workflow to Makefile

Description

Export workflow to Makefile

Usage

writeWorkflow(wf, outFile)

Arguments

wf

a variable workflow class

outFile

character, typically named "Makefile"

Examples

j1 <- newJob('id1', 'cmd out1', 'out1')
j2 <- newJob('id2', 'cmd out2', 'out2', depend = 'out1')
w <- newWorkflow("wf")
w <- addJob(w, j1)
w <- addJob(w, j2)

outFile <-  file.path(tempdir(), "Makefile")
writeWorkflow(w, outFile)
cat('Outputted Makefile file are in the temp directory:', outFile, '\n')

seqminer documentation built on Oct. 7, 2024, 1:15 a.m.