View source: R/messageParallel.R
messageParallel | R Documentation |
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.
messageParallel(...)
... |
Arguments to be concatenated into a single character string for printing |
Invisible NULL, called for its side effect of printing
This function may have significant resource overhead when used frequently or with large amounts of output. Use sparingly in performance-critical code.
# Basic usage
messageParallel("Hello World")
# Multiple arguments are concatenated
messageParallel("Hello", " ", "World")
if (requireNamespace("future", quietly = TRUE)) {
future::plan(future::multisession)
f <- future::future({
messageParallel("Message from parallel process")
})
future::value(f)
future::plan(future::sequential)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.