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
Content-addressable storage (CAS), recently added to targets, is a more native and elegant way to achieve the original goals of gittargets. Demonstration:
library(targets)
# Run the first version
tar_script(tar_target(x, 1, repository= tar_repository_cas_local()))
tar_make(reporter="silent")
# Stash the metadata (would use Git in real life)temp<- file.copy("_targets/meta/meta", "first_meta")
# Run the second version
tar_script(tar_target(x, 2, repository= tar_repository_cas_local()))
tar_make(reporter="silent")
# Revert to the first version and skip target x.
file.copy("first_meta", "_targets/meta/meta", overwrite=TRUE)
#> [1] TRUE
tar_script(tar_target(x, 1, repository= tar_repository_cas_local()))
tar_make()
#> ✔ skipped target x#> ✔ skipped pipeline [0.041 seconds]
I will want to at least wait until the release of targets 1.9.0 reaches CRAN. (It may take a couple days because there was a revdep check problem with jagstargets, and I need jagstargets 1.2.2 to populate on CRAN servers.)
Content-addressable storage (CAS), recently added to
targets
, is a more native and elegant way to achieve the original goals ofgittargets
. Demonstration:Created on 2024-11-18 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: