Tracking tar_map values object #326
-
Hello! One more question for me today (thanks again for your help with the first). I am using tar_map with a values tibble object that I might add rows to from one day to the next. Is it possible to track this tibble object as a target and only run the new branches or rows that have been altered from the tibble object? I've tried adding it as a file target and then reading it before passing to tar_map but I'm getting a weird error message about not having a _targets folder even though I'm using tar_make. My other thought would be to make each row a separate file and then read them all in each time. I also tried using a target directly in that values argument for tar_map but it doesn't seem to evaluate it as a target. Thank you, Kevin |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
In
When you add rows, new targets should automatically spawn and old ones should remain up to date, which is the desired behavior. |
Beta Was this translation helpful? Give feedback.
In
tar_map()
,values
exists prior to running (or even defining) the pipeline, which means it cannot be a target. But in dynamic branching, you can easily map over the rows of atibble
target as long asiteration = "vector"
intar_target()
for thetibble
(default).When you add rows, new targets should automatically spawn and old ones should remain up to date, which is the desired behavior.