addBatch: addBatch

Description Usage Arguments Author(s) Examples

Description

Add batch to a queue

Usage

1
2
3
4
5
6
addBatch(object, ...)

## S4 method for signature 'queue'
addBatch(object, path = NULL, name = NULL, desc = NULL,
  params = NULL, parallelizable = TRUE, waitBeforeNext = TRUE,
  endIfKO = TRUE, logfile = NULL)

Arguments

object

An object of class queue

...

Others arguments from specific methods

path

Character Path to the R batch. (Mandatory)

name

Character Alias of the batch. (Default basename(batch@path))

desc

Character Description

params

Named list that contains the variable to be transfered to batch. (Default NULL)

parallelizable

Logical If batch can be launched multiple times at the same moment regardless to groups. (Default TRUE)

waitBeforeNext

Logical If queue can launch next batch while this one. (Default TRUE)

endIfKO

Logical If batch ends KO, forcefully terminate queue. (Default TRUE)

logfile

Character Path to file that contains batch output. (Default queue@logfolder/batch@name.log)

Author(s)

Quentin Fazilleau

Examples

1
2
3
4
5
6
## Not run: 
q <- createQueue()
q <- addBatch(q, "/path/batch.R")
launch(q)

## End(Not run)

qfazille/launcheR documentation built on May 28, 2019, 4:40 p.m.