View source: R/global_progression_handler.R
register_global_progression_handler | R Documentation |
Add or Remove a Global 'progression' Handler
register_global_progression_handler(action = c("add", "remove", "query"))
action |
(character string)
If |
Returns TRUE if a handler is registered, otherwise FALSE.
If action = "query"
, the value is visible, otherwise invisible.
This function requires R (>= 4.0.0) - the version in which global calling handlers where introduces.
handlers(global = TRUE)
## This renders progress updates for each of the three calls slow_sum()
for (ii in 1:3) {
xs <- seq_len(ii + 3)
message(sprintf("%d. slow_sum()", ii))
y <- slow_sum(xs, stdout = TRUE, message = TRUE)
print(y)
}
handlers(global = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.