c.export: Export function for cluster parallel

Description Usage Arguments Examples

Description

Wrapper function for parExport() and Rhpc_Export(). Note: This is effectively necessary for PSOCKS and MPI portability.

Usage

1
2
## S3 method for class 'export'
c(..., push = TRUE, clear = FALSE)

Arguments

...

string objects containing variables to export.

push

logical of whether or not to push the export list, defaults to TRUE

clear

logical of whether or not to erase the export list and add the included options to it, defaults to FALSE

Examples

1
2
3
4
vec <- 1:10
c.export("vec", push=FALSE)    # adds object 'vec' to list of things to export, but doesn't export it
c.export(push=T)               # export all objects in the to.export list
c.export("vec")                # add "vec" to the to.export list, then export all items in list

bamonroe/ctools documentation built on May 11, 2019, 6:19 p.m.