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")
  }
}
ropensci/tracerer documentation built on Oct. 1, 2023, 2:03 p.m.