Skip to content

Commit

Permalink
Add missing afmm_param argument when calling listings_server.
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-ebs-ext committed Feb 13, 2025
1 parent 00c16ab commit 75a1f6f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
14 changes: 10 additions & 4 deletions R/check_call_auto.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,27 @@

# dv.listings::mod_listings
check_mod_listings_auto <- function(afmm, datasets, module_id, dataset_names, default_vars, pagination,
intended_use_label, warn, err) {
intended_use_label, subjid_var, receiver_id, warn, err) {
OK <- logical(0)
used_dataset_names <- new.env(parent = emptyenv())
OK[["module_id"]] <- CM$check_module_id("module_id", module_id, warn, err)
flags <- list(one_or_more = TRUE)
OK[["dataset_names"]] <- CM$check_dataset_name("dataset_names", dataset_names, flags, datasets, used_dataset_names,
warn, err)
"NOTE: default_vars (group) has no associated automated checks"
" The expectation is that it does not require one or that"
" 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."
"NOTE: pagination (group) has no associated automated checks"
" The expectation is that it does not require one or that"
" 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."
"NOTE: intended_use_label (group) has no associated automated checks"
" The expectation is that it does not require one or that"
" 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."
"NOTE: subjid_var (group) has no associated automated checks"
" 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."
"NOTE: receiver_id (group) has no associated automated checks"
" 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."
return(OK)
}
Expand Down
6 changes: 3 additions & 3 deletions R/mod_listings.R
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ mod_listings <- function(
module_id = module_id,
intended_use_label = intended_use_label,
subjid_var = subjid_var,
receiver_id = receiver_id
receiver_id = receiver_id,
afmm_param = list(utils = afmm$utils, module_names = afmm$module_names)
)
},
module_id = module_id
Expand Down Expand Up @@ -535,8 +536,7 @@ check_mod_listings <- function(afmm, datasets, module_id, dataset_names,
ok <- check_mod_listings_auto(
afmm, datasets,
module_id, dataset_names, default_vars, pagination, intended_use_label,
subjid_var, receiver_id
#warn, err
subjid_var, receiver_id, warn, err
)

# default_vars
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ vdoc <- local({
specs <- vdoc[["specs"]]
# validation (F)

# YT#VH19ec235e56cdd18f129215603abf0ca6#VH00000000000000000000000000000000#
# YT#VH27d48516d3cbdadbf92a7b5e0860b78e#VH19ec235e56cdd18f129215603abf0ca6#

#' Test harness for communication with `dv.papo`.
#'
Expand Down

0 comments on commit 75a1f6f

Please sign in to comment.