Skip to content

Commit

Permalink
restore old code
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Dec 23, 2024
1 parent 897270d commit ef4fa85
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions R/class_meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,23 @@ meta_class <- R6::R6Class(
self$del_records(remove)
},
hash_dep = function(name, pipeline) {
.subset2(.subset2(.subset2(self, "database"), "get_row")(name), "data")
exists <- self$exists_record(name) &&
pipeline_exists_object(pipeline, name)
if_any(
exists,
self$get_record(name)$data,
""
)
},
hash_deps = function(deps, pipeline) {

browser()

hashes <- lapply(
X = sort_chr(deps),
FUN = self$hash_dep,
pipeline = pipeline
FUN = function(name) {
.subset2(.subset2(.subset2(self, "database"), "get_row")(name), "data")
},
)
names(hashes) <- deps
hashes <- unlist(hashes, use.names = TRUE)
Expand Down

0 comments on commit ef4fa85

Please sign in to comment.