push: Copy Object from Master to Slave Processes

Description Usage Arguments Warning See Also Examples

View source: R/collectDistribute.R

Description

Copies an objects from the master process to all slave processes. Objects can be copied to environments and ReferenceClass objects as well as the global environment on the slaves.

Usage

1
push(.tmp, objName = deparse(substitute(.tmp)), objPos = ".GlobalEnv")

Arguments

.tmp

object on master process to be copied, given either as the name of an object or as a character.

objName

the name to use for the object on the slave processes.

objPos

where to do the assignment, given as a character string (unlike assign). This can indicate an environment or a ReferenceClass object.

Warning

Vectors that are part of the distributed linear algebra computations are broken up in very specific ways on the slave processes and often include padded elements. In general one should not use push to distribute such objects as push would distribute the entire vector to each slave process. Rather, use distributeVector.

See Also

pull distributeVector

Examples

1
2
3
4
5
6
7
## Not run: 
bigGP.init(3)
a <- 3
push(a)
remoteLs()

## End(Not run)

bigGP documentation built on May 30, 2017, 12:22 a.m.