Learn R Programming

doMPI (version 0.2.2)

sinkWorkerOutput: Redirect worker output to a file

Description

The sinkWorkerOutput function is used to redirect worker output to a file. It is intended to be used from a doMPI script that is executed in “non-spawn” mode.

Usage

sinkWorkerOutput(outfile)

Arguments

outfile
a character string naming the file to write to.

Examples

Run this code
## Not run: ------------------------------------
# sinkWorkerOutput(sprintf('worker_<!-- %d.log', mpi.comm.rank(0))) -->
## ---------------------------------------------

Run the code above in your browser using DataLab