View source: R/starburst-map.R
| starburst_cluster | R Documentation |
Creates a cluster object for managing AWS Fargate workers using Future backend
starburst_cluster(
workers = 10,
cpu = 4,
memory = "8GB",
platform = "X86_64",
region = NULL,
timeout = 3600
)
workers |
Number of parallel workers |
cpu |
CPU units per worker |
memory |
Memory per worker |
platform |
CPU architecture (X86_64 or ARM64) |
region |
AWS region |
timeout |
Maximum runtime in seconds |
A starburst_cluster object
if (starburst_is_configured()) {
cluster <- starburst_cluster(workers = 20)
results <- cluster$map(data, function(x) x * 2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.