I want to generate a large plan whose arguments depend on previously computed targets. Is that possible at all?
Specifically, I need something along the lines of:
drake_plan(
data = get_data(),
lots_of_sds = get_sds_from_a_complex_pipeline()
analysis = target(
fun(data, mean = mean_val, sd = sd_val),
transform = cross(mean_val = c(2, 5), sd_val = !!lots_of_sds)
)
)
The problem is that trying this (or similar variations) fails because lots_of_sds
has not been defined and as such the transformation cannot expand the plan.
Has anyone faced a similar situation in the past? Any ideas/workarounds?
Thanks! I'm using drake 7.0.0 and R version 3.5.3