R/check_trace.R

Defines functions check_trace

Documented in check_trace

#' Check if the trace is a valid. Will \link{stop} if not
#' @inheritParams default_params_doc
#' @export
#' @author Richèl J.C. Bilderbeek
#' @examples
#' check_trace(seq(1, 2))
check_trace <- function(trace) {
  if (!is.numeric(trace)) {
    stop("'trace' must be numeric")
  }
}

Try the tracerer package in your browser

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

tracerer documentation built on Sept. 27, 2023, 5:09 p.m.