You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Search for duplicates among the existing issues, both open and closed.
If you think your question has a quick and definite answer, consider posting to Stack Overflow under the drake-r-package tag. (If you anticipate extended follow-up and discussion, you are already in the right place!)
Question
Hello,
your work is very much impressive and I'd to thank you for the hard work and dedication to this great package. I have a first success building a Rmd website with renv and gitlab-CI, super nice. The examples shared really helped a lot. Of course, now I want more complex things and I am wondering how to cancel a target with dynamic branching.
I know you are working getting sub-targets working for dynamic and it sounds complex (#1214), here I want to cancel a complete dynamic target based on a condition. I tried the trigger = trigger(condition())
but got:
Error: Dynamic grouping variables are forbidden in the condition and change triggers. Found dynamic grouping variables for target downstream:
empty
Then, I went to #1131 and thought this could be nice (thanks for #1212 BTW, that I discover testing the dev version of drake) with cancel_if()
so my question is:
how can I stop a dynamic target from being done based on a condition like no elements? In my case, I am building a teaching website, I have lecture / practicals / projects and they are all dynamic since appearing as the course goes on. With at least one of each, everything is fine.
I can also use keep_going = TRUE to survive one target failure but I don't like it. I'd prefer to invalidate right away a target (and dependencies) if basically nothing needs to be done, like no Rmd in practicals for example?
Many thanks in advance,
The text was updated successfully, but these errors were encountered:
Wow! thanks a lot, that's really nice, and easy enough.
I can safely drop the keep_going = TRUE and even the cancel gets its own orange color ;)
thanks again for such a fast help
Prework
drake
's code of conduct.drake-r-package
tag. (If you anticipate extended follow-up and discussion, you are already in the right place!)Question
Hello,
your work is very much impressive and I'd to thank you for the hard work and dedication to this great package. I have a first success building a Rmd website with
renv
and gitlab-CI, super nice. The examples shared really helped a lot. Of course, now I want more complex things and I am wondering how to cancel a target withdynamic
branching.I know you are working getting sub-targets working for
dynamic
and it sounds complex (#1214), here I want to cancel a completedynamic
target based on a condition. I tried thetrigger = trigger(condition())
but got:
Then, I went to #1131 and thought this could be nice (thanks for #1212 BTW, that I discover testing the dev version of
drake
) withcancel_if()
Created on 2020-03-13 by the reprex package (v0.3.0)
so my question is:
how can I stop a dynamic target from being done based on a condition like no elements? In my case, I am building a teaching website, I have lecture / practicals / projects and they are all dynamic since appearing as the course goes on. With at least one of each, everything is fine.
I can also use
keep_going = TRUE
to survive one target failure but I don't like it. I'd prefer to invalidate right away a target (and dependencies) if basically nothing needs to be done, like no Rmd in practicals for example?Many thanks in advance,
The text was updated successfully, but these errors were encountered: