Skip to content

Commit

Permalink
recognize delayed_datasets in get_extract_datanames
Browse files Browse the repository at this point in the history
  • Loading branch information
chlebowa committed Feb 6, 2025
1 parent 456fe70 commit f7462a9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion R/data_extract_datanames.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,20 @@ get_extract_datanames <- function(data_extracts) {
}
})

unique(unlist(datanames))
.extract_delayed_datasets <- function(x) {
if (inherits(x, "delayed_datasets")) {
attr(x, "datasets", exact = TRUE)
} else {
x
}
}
datanames <- rapply(datanames, .extract_delayed_datasets)

if (any(datanames == "all")) {
"all"
} else {
unique(datanames)
}
}

#' Verify uniform dataset source across data extract specification
Expand Down

0 comments on commit f7462a9

Please sign in to comment.