pforeach: pforeach

Description Usage Arguments

Description

Easy way to parallel processing in R

Parallelized foreach

Usage

1
2
3
4
5
pforeach(..., .c, .combine = c, .parallel = TRUE, .debug = !.parallel,
  .cores, .seed = NULL, .init, .final = NULL, .inorder = TRUE,
  .multicombine = FALSE, .maxcombine = if (.multicombine) 100 else 2,
  .errorhandling = c("pass", "stop", "remove"), .packages = NULL,
  .export = NULL, .noexport = NULL, .verbose = FALSE)

Arguments

...

input for foreach.

.c

the relief of .combine parameter. Additionally .c=list means list combine that is deafault on foreach.

.combine

function that is used to process the tasks results as they generated.

.parallel

if TRUE, execute parallel processing.

.debug

if TRUE, execute sequential processing(not parallel).

.cores

number of cores for paralell processing.

.seed

random number seed.

.packages

character vector of packages that the tasks depend on.

.export

character vector of variables to export.


hoxo-m/pforeach documentation built on May 17, 2019, 4:53 p.m.