Skip to content

Commit

Permalink
Merge branch 'dev' into improve_AE_hierarchytable
Browse files Browse the repository at this point in the history
  • Loading branch information
yashshah1995 committed Feb 27, 2025
2 parents 3972975 + 7c371ae commit cd38a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/check_call_auto.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ check_mod_hierarchical_count_table_auto <- function(afmm, datasets, module_id, t
" The expectation is that it either does not require them or that"
" the caller of this function has written manual checks near the call site."
subkind <- list(kind = "or", options = list(list(kind = "character"), list(kind = "factor")))
flags <- list(zero_or_more = TRUE)
flags <- list(zero_or_more = TRUE, optional = TRUE)
OK[["default_hierarchy"]] <- OK[["table_dataset_name"]] && CM$check_dataset_colum_name("default_hierarchy",
default_hierarchy, subkind, flags, table_dataset_name, datasets[[table_dataset_name]], warn,
err)
Expand Down
3 changes: 2 additions & 1 deletion R/mod_hierarchical_count_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,8 @@ mod_hierarchical_count_table_API_spec <- TC$group(
pop_dataset_name = TC$dataset_name(),
subjid_var = TC$col("pop_dataset_name", TC$factor()) |> TC$flag("subjid_var"),
show_modal_on_click = TC$logical(),
default_hierarchy = TC$col("table_dataset_name", TC$or(TC$character(), TC$factor())) |> TC$flag("zero_or_more"),
default_hierarchy = TC$col("table_dataset_name", TC$or(TC$character(), TC$factor())) |>
TC$flag("zero_or_more", "optional"),
default_group = TC$col("pop_dataset_name", TC$or(TC$character(), TC$factor())) |> TC$flag("optional"),
intended_use_label = TC$character() |> TC$flag("optional"),
receiver_id = TC$character() |> TC$flag("optional")
Expand Down

0 comments on commit cd38a4e

Please sign in to comment.