Rhpc_Export: Export variables to worker processes

View source: R/Rhpc.R

Rhpc_ExportR Documentation

Export variables to worker processes

Description

Sends R objects from the master process to all worker processes.

Usage

Rhpc_Export(cl, variableNames,
            usequote = ifelse(is.logical(getOption("Rhpc.usequote")),
                              getOption("Rhpc.usequote"), TRUE),
            pos = 1,
            envir = as.environment(pos))

Arguments

cl

external pointer to MPI communicator

variableNames

character vector of object names to export

usequote

logical; if FALSE, quote handling is skipped for performance improvement

pos

environment position from which to retrieve objects (default: global environment)

envir

environment from which to retrieve objects (default: environment at position pos)

Details

This function retrieves objects from the master's environment and sends them to all worker processes, making them available in the workers' global environment.

Objects are sent via collective communication.

Value

Returns invisibly. Objects are assigned in worker environments.

See Also

Rhpc_worker_call, Rhpc_EvalQ


Rhpc documentation built on Aug. 4, 2026, 1:07 a.m.