R/utils.R

Defines functions abort warn

globalVariables(c(
  "variable",
  "weights",
  "smd",
  "estimate",
  "smd_results",
  "term",
  "method",
  "(Intercept)"
))

warn <- function(...) {
  rlang::warn(..., use_cli_format = TRUE, class = "tidysmd_warning")
}

abort <- function(...) {
  rlang::abort(..., use_cli_format = TRUE, class = "tidysmd_error")
}

Try the tidysmd package in your browser

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

tidysmd documentation built on May 31, 2023, 7:49 p.m.