R/checks_data.R

Defines functions check_data

check_data <- function(.data, dots_params) {
  if (!(is.data.frame(.data$evds_data) || !is.data.frame(.data$fred_data))) {
    call. <- ifelse(is.null(dots_params$call.), deparse(match.call()), dots_params$call.)
    msg <- "
      !error  :
    =====================================
      call : [{    call. }]
    =====================================
    "
    message(glue::glue(msg))
    # data
    # stop()
  }
}

Try the Rapi package in your browser

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

Rapi documentation built on May 29, 2024, 2:34 a.m.