Learn R Programming

bigGP (version 0.1-2)

localAssign: Assign a New Name to an Object on Slave Process

Description

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.

Usage

localAssign(nameToAssign, currentName, objPos = ".GlobalEnv")

Arguments

Details

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab