Skip to content

Commit

Permalink
eke out more tar_outdated() gains
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Jan 3, 2025
1 parent b76fbd1 commit 4be227a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions R/class_meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,11 @@ meta_class <- R6::R6Class(
remove <- setdiff(names_records, names_current)
self$del_records(remove)
},
hash_dep = function(name) {
.subset2(.subset2(lookup, name), "data")
},
hash_deps = function(deps, pipeline) {
hashes <- lapply(X = deps, FUN = hash_dep)
names(hashes) <- deps
hashes <- list()
for (name in deps) {
hashes[[name]] <- .subset2(.subset2(lookup, name), "data")
}
hashes <- unlist(hashes, use.names = TRUE)
string <- paste(c(names(hashes), hashes), collapse = "")
hash_object(string)
Expand Down

0 comments on commit 4be227a

Please sign in to comment.