R/check_target.R

Defines functions check_target

#' @importFrom rlang quo_is_null
#' @importFrom rlang expr
check_target <- function(target) {
  if (rlang::quo_is_null(target)) {
    rlang::expr(where(is.numeric))
  } else {
    target
  }
}

Try the baldur package in your browser

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

baldur documentation built on Sept. 18, 2023, 9:07 a.m.