View source: R/collectDistribute.R
localAssign | R Documentation |
localAssign
is an internal auxiliary function used
to assign a new name to an object in an environment on a slave
process. The function needs to be executed on the slave processes.
localAssign(nameToAssign, currentName, objPos = ".GlobalEnv")
nameToAssign |
a variable name, given as a character string, giving the new name for the object. |
currentName |
a variable name, given as a character string, giving the current name for the object. |
objPos |
where to do the assignment, given as a character string (unlike
|
This function is primarily for internal use, but might be useful for
developers extending the package for use cases other than the
kriging use case contained in krigeProblem
ReferenceClass.
## Not run:
bigGP.init(3)
mpi.bcast.cmd(e <- new.env())
mpi.bcast.cmd(a <- 7)
mpi.remote.exec(localAssign, "x", "a", objPos = "e")
mpi.remote.exec(e$x, ret = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.