R/sgl_cta_utils.R

Defines functions raise_if_arg_present

raise_if_arg_present <- function(col_expr) {
  if ("arg" %in% names(col_expr)) {
    err_msg <- sprintf(
      "Error: %s function received unexpected argument.",
      cta_fn_name(col_expr$cta)
    )
    stop(err_msg)
  }
}

Try the rsgl package in your browser

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

rsgl documentation built on June 9, 2026, 1:07 a.m.