Skip to content

Commit 5f66d7e

Browse files
committed
update early error feedback for arm_default_vals
1 parent 972bc1c commit 5f66d7e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/mod_edish.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,9 @@ check_mod_edish <- function(
497497
# Reason: Arbitrary values allowed in case multiple studies are included with different arm values
498498
CM$assert(
499499
container = err,
500-
cond = is.character(arm_default_vals),
500+
cond = is.character(arm_default_vals) | is.null(arm_default_vals),
501501
msg = sprintf(
502-
'The values assigned to `arm_default_vals` are of type %s, but should be of type character.',
502+
"The values assigned to `arm_default_vals` are of type %s, but should be of type character.",
503503
typeof(arm_default_vals)
504504
)
505505
)

0 commit comments

Comments
 (0)