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.
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)
}
# }