Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisknoll committed Jul 8, 2024
1 parent 3c83e66 commit 4eb1a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/Builders.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ createStrataSettings <- function (byAge = F, byGender = F, byYear = F, ageBreaks
strataSettings$byAge <- byAge;
strataSettings$byGender <- byGender;
strataSettings$byYear <- byYear;
if(byAge == T && (missing(ageBreaks) || missing(ageBreakList))) stop ("Error: when byAge = TRUE, ageBreaks or ageBreakList must be provided.")
if(byAge == T && missing(ageBreaks) && missing(ageBreakList)) stop ("Error: when byAge = TRUE, ageBreaks or ageBreakList must be provided.")
if (!missing(ageBreaks)) strataSettings$ageBreaks <- ageBreaks;

return(strataSettings);
Expand Down

0 comments on commit 4eb1a0c

Please sign in to comment.