R/validate_control_tols.R

Defines functions validate_control_tols

validate_control_tols <- function(control){
  lapply(control[c("solve_tol", "qr_tol", "orth_tol", "trans_tol")],
         validate_numeric, positive = TRUE, len = 1,
         message = "Invalid tolerance specification: ")
  validate_numeric(control[["matsqrt_tol"]], max_val = 0, len = 1)
}

Try the distfreereg package in your browser

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

distfreereg documentation built on April 4, 2025, 12:30 a.m.