R/check_scenario.R

Defines functions .check_scenario

#' Check an ms_scenario object
#'
#' @param x Value to check.
#' @return \code{TRUE} invisibly; an error otherwise.
#' @noRd
.check_scenario <- function(x) {
  if (!inherits(x, "ms_scenario")) {
    stop("'scenario' must be an 'ms_scenario' object (see ms_scenario()).",
         call. = FALSE)
  }
  invisible(TRUE)
}

Try the DesignComplexSurvival package in your browser

Any scripts or data that you put into this service are public.

DesignComplexSurvival documentation built on Nov. 23, 2026, 5:07 p.m.