Learn R Programming

doMPI (version 0.2.2)

exportDoMPI: Export variables to doMPI cluster

Description

The exportDoMPI function exports variables to a doMPI cluster.

Usage

exportDoMPI(cl, varlist, envir=.GlobalEnv)

Arguments

cl
The doMPI cluster.
varlist
Vector of variable names.
envir
Environment to get variables from.

Examples

Run this code
## Not run: ------------------------------------
# cl <- startMPIcluster(count=2)
# f <- function() 'foo'
# g <- function() f()
# exportDoMPI(cl, c('f', 'g'))
## ---------------------------------------------

Run the code above in your browser using DataLab