Skip to contents

Enables message output from forked processes during parallel computation using the system's echo command. Primarily designed for use with `parallel` `future` and `future.apply` parallel processing.

Usage

messageParallel(...)

Arguments

...

Arguments to be concatenated into a single character string for printing

Value

Invisible NULL, called for its side effect of printing

Note

This function may have significant resource overhead when used frequently or with large amounts of output. Use sparingly in performance-critical code.

Examples

# Basic usage
messageParallel("Hello World")

# Multiple arguments are concatenated
messageParallel("Hello", " ", "World")

# \donttest{
if (requireNamespace("future", quietly = TRUE)) {
  future::plan(future::multisession)
  f <- future::future({
    messageParallel("Message from parallel process")
  })
  future::value(f)
  future::plan(future::sequential)
}
# }