Add distribution settings to a parade flow
distribute.RdAdd distribution settings to a parade flow
Arguments
- fl
A
parade_flowobject- dist
A distribution specification object (from
dist_local(),dist_slurm(),dist_mirai(),dist_crew()), or a string shortcut:"local","slurm","mirai", or"crew". When a string is given, the correspondingdist_*()constructor is called with any extra arguments passed via....- ...
Additional arguments forwarded to the
dist_*()constructor whendistis a string shortcut. Ignored whendistis already aparade_distobject.
Examples
grid <- data.frame(x = 1:4, group = rep(c("A", "B"), 2))
# Full form
fl <- flow(grid) |> distribute(dist_local(by = "group"))
# String shortcut — equivalent
fl <- flow(grid) |> distribute("local", by = "group")