Skip to content

Commit

Permalink
add labels to the input checking functions as John suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleBeannie committed Nov 2, 2023
1 parent a438c93 commit fcfbd40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/get_analysis_date.R
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ get_analysis_date <- function(
stop(paste0(label, " must be a positive number with either NA or positive numbers!"))
}
}
input_check_vector(target_event_per_stratum)
input_check_vector(min_n_per_stratum)
input_check_vector(target_event_per_stratum, label = "target_event_per_stratum")
input_check_vector(min_n_per_stratum, label = "min_n_per_stratum")

cond1 <- inherits(enroll_rate, c("tbl_df", "data.frame")) # check if enrollment is input by user
cond2 <- !is.na(min_n_overall) # check if min_n_overall is input by user
Expand Down

0 comments on commit fcfbd40

Please sign in to comment.