Optional dependencies in drake?

34 Views Asked by At

Consider the situation where I have some dependencies that are "optional" - sometimes I want to include them in my processing chain, sometimes I don't. e.g.

the.plan <-
 drake_plan(A,
            B,
            C,
            combined_target=target(list(A,B,C)),
            further_processing=target(my_fn(combined_target)))

Depending on how I configure my processing chain, sometimes we want to include all of A, B and C, other times one or more of them are not required and therefore should not be included. How can I best structure such a plan to achieve this?

Best wishes,

Mark

0

There are 0 best solutions below