-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid dots in target name when .id is a character #847
Comments
I'm also experiencing a related (?) issue where the dots introduced into target names prevents them from being loaded with
outputs:
|
@joelnitta, I agree. Those quotes are an odd quirk of the DSL, and it makes sense to remove them. This will invalidate lots of targets, but the DSL is officially still experimental, so I think we are okay. Now fixed. library(drake)
drake_plan(
data = target(
get_data(param1, param2, param3),
transform = map(
param1 = c(123, 456),
param2 = c("x", "y"),
param3 = c("abc", "xyz"),
.id = c(param2, param3)
)
)
)
#> # A tibble: 2 x 2
#> target command
#> <chr> <expr>
#> 1 data_x_abc get_data(123, "x", "abc")
#> 2 data_y_xyz get_data(456, "y", "xyz") Created on 2019-04-17 by the reprex package (v0.2.1) |
@b-coli, sorry, but I cannot reproduce the error you were seeing. Hopefully you will encounter it less often now that the target names are simplified. |
This resolved the issue -- thanks!!! |
Prework
drake
's code of conduct.Description
This is just a minor request.
Can we get rid of the periods in the target name when using a character vector for
.id
?Created on 2019-04-17 by the reprex package (v0.2.1)
Session info
The text was updated successfully, but these errors were encountered: