Document the DSL
Closed this issue · 3 comments
wlandau commented
Focus on ropensci/drake#674, ropensci/drake#680, and drake_plan(trace = TRUE)
.
wlandau commented
Need to include all the functionality tested in https://github.com/ropensci/drake/blob/master/tests/testthat/test-plan-transformations.R, including groupings and new arguments to drake_plan()
.
wlandau commented
Should also replace all uses of wildcard functions with uses of transformations and groupings.
wlandau commented
A major highlight: tidy evaluation for super large plans. A taste:
sms <- rlang::syms(letters)
drake::drake_plan(x = target(f(char), transform = map(char = !!sms)))
#> # A tibble: 26 x 2
#> target command
#> <chr> <chr>
#> 1 x_a f(a)
#> 2 x_b f(b)
#> 3 x_c f(c)
#> 4 x_d f(d)
#> 5 x_e f(e)
#> 6 x_f f(f)
#> 7 x_g f(g)
#> 8 x_h f(h)
#> 9 x_i f(i)
#> 10 x_j f(j)
#> # … with 16 more rows
Created on 2019-01-20 by the reprex package (v0.2.1)