run_future | R Documentation |
Run a future-based computation defined by obj
and frame
.
run_future(obj, frame, processor, ...)
## Default S3 method:
run_future(obj, frame, processor = NULL, verbose = FALSE, analysis_type, ...)
obj |
An object specifying the computation. |
frame |
Data frame or environment containing data for the computation. |
processor |
A function or object specifying how to process the frame. |
... |
Additional arguments passed to the method-specific function. |
verbose |
Logical; print progress messages if |
analysis_type |
The analysis type (e.g., |
A tibble containing the processed results.
frame <- tibble::tibble(
.id = 1:2,
rnum = c("roi1", "roi2"),
roi = list(1:3, 4:5),
size = c(3, 2)
)
mod_spec <- list(process_roi = function(mod_spec, roi, rnum, ...) {
tibble::tibble(
result = list(mean(roi)),
indices = list(seq_along(roi)),
performance = list(NULL),
id = rnum
)
})
run_future(mod_spec, frame, NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.