bind_plans和地图转换

时间:2019-11-16 19:02:04

标签: drake-r-package

是否可以将地图转换与外部计划中描述的分组变量一起使用?

换句话说,这对我有用:

plan_a = drake_plan(
    foo = target(x + 1, transform = map(x = c(4, 5, 6))),
    bar = target(y + 5, transform = map(foo))
)

但这不是:

plan_a = drake_plan(
    foo = target(x + 1, transform = map(x = c(4, 5, 6))),
)
plan_b = drake_plan(
    bar = target(y + 5, transform = map(foo))
)
bind_plans(plan_a, plan_b)

谢谢!

1 个答案:

答案 0 :(得分:1)

我找到了使用transform_plan函数的解决方案。