ropensci-books / drake

The user manual for the drake R package
https://books.ropensci.org/drake/
GNU General Public License v3.0
55 stars 26 forks source link

Equivalent of `make -t` (GNU Make touch) #171

Closed grantmcdermott closed 3 years ago

grantmcdermott commented 3 years ago

Apologies if I missed something obvious, but does drake have an equivalent of GNU Make's "touch" flag (-t)? See description here.

My situation is that I need to make a (minor) change to an upstream function that will have no impact on my existing targets --- it's an additional function argument that defaults to NULL --- but is needed for a new target that I want to create. To avoid rebuilding everything, I'd like to introduce my minor change and then update the timestamps of my existing targets without rebuilding. Only then would I create the new target that relies on this minor change.

P.S. The "skip_targets" argument looks like it might be what I'm looking for, but it's not entirely clear from the description. I think that this could just be a temporary build shortcut, rather than a way of updating the target timestamps.