Add new groups to data without invalidating downstream targets? #508
Replies: 3 comments 4 replies
-
768afad should work. Please give it a try. At first I thought this was just an instance of #507, then I realized |
Beta Was this translation helpful? Give feedback.
-
I just tried to install and run again, but I got a strange error: Error : 'switch_config' is not an exported object from 'namespace:targets' |
Beta Was this translation helpful? Give feedback.
-
Sorry yes I guess it was just something with my R session as I couldn't reproduce with reprex. I still haven't managed to solve the original question with the update though. Will try and get a reprex for that. |
Beta Was this translation helpful? Give feedback.
-
I was wondering what you would recommend if new groups are added to an upstream data set so that only the new groups are rerun. For example, borrowing from the example from
tar_group_by
, we have:if later new groups are added to the dataset:
Now the
data
target is outdated (understandably) but every result branch is also rebuilt. I guess targets doesn't know the contents of the data, so what would be the best way around this case? Best to be mapping over var1 directly and have that as input into the function?Beta Was this translation helpful? Give feedback.
All reactions