exportDoMPI: Export variables to doMPI cluster

Description Usage Arguments Examples

View source: R/exportDoMPI.R

Description

The exportDoMPI function exports variables to a doMPI cluster.

Usage

1
exportDoMPI(cl, varlist, envir=.GlobalEnv)

Arguments

cl

The doMPI cluster.

varlist

Vector of variable names.

envir

Environment to get variables from.

Examples

1
2
3
4
5
6
7
## Not run: 
cl <- startMPIcluster(count=2)
f <- function() 'foo'
g <- function() f()
exportDoMPI(cl, c('f', 'g'))

## End(Not run)

doMPI documentation built on May 2, 2019, 1:10 p.m.