Skip to content

Commit 84c7423

Browse files
author
Fran Barton
committed
Add check for blank aggregations in report config
1 parent ee810fa commit 84c7423

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/checking_functions.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ check_report_config <- function(report_config) {
113113
"ref", "measure_name", "domain", "spc_chart_type", "aggregation"
114114
)
115115

116+
assert_that(
117+
!any(is.na(report_config[["aggregation"]])),
118+
msg = "check_report_config: Some aggregation values are blank."
119+
)
120+
116121
optional_columns <- c("report_comment")
117122

118123
# check required cols are present

0 commit comments

Comments
 (0)