-
-
Notifications
You must be signed in to change notification settings - Fork 3
merge fix #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merge fix #83
Changes from all commits
c391af3
7061bf5
d117263
a3dede9
5a139fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -146,7 +146,12 @@ merge_expression_module <- function(datasets, | |||||
| id = "merge_id") { | ||||||
| logger::log_trace("merge_expression_module called with: { paste(names(datasets), collapse = ', ') } datasets.") | ||||||
|
|
||||||
| checkmate::assert_list(data_extract, types = "data_extract_spec", names = "named") | ||||||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be compatible with: teal.transform/R/data_merge_module.R Line 103 in 801b8be
teal.transform/R/data_extract_module.R Line 578 in 801b8be
data_extract (multiple) can be a list of lists of data_extract_spec objects. Because single data_extract can be also a list
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we also need to check that if it is a list then that inner list is only
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup, I've added more assertions |
||||||
| checkmate::assert_list(data_extract, names = "named", types = c("list", "data_extract_spec")) | ||||||
| lapply(data_extract, function(x) { | ||||||
| if (is.list(x) && !inherits(x, "data_extract_spec")) { | ||||||
| checkmate::assert_list(x, "data_extract_spec") | ||||||
| } | ||||||
| }) | ||||||
|
|
||||||
| selector_list <- data_extract_multiple_srv(data_extract, datasets, join_keys) | ||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there should be no filter calls in the merge_datasets as they are created in FilteredData.