I'd like to use a function to create a drake plan. See MWE:
plan_func <- function(param) {
drake::drake_plan(
myparam = param
)
}
I would like
plan_func("a")
to give
# A tibble: 1 x 2
target command
<chr> <expr_lst>
1 myparam "a"
but instead, it gives
> plan_func("a")
# A tibble: 1 x 2
target command
<chr> <expr_lst>
1 myparam param
It feels like this is an NSE problem. Can someone give a friendly hint how to get this right?
My appreciation in advance!