R/gvcharexpr.r

#' @importFrom rlang "eval_tidy"
#' @importFrom rlang "quo_text"
gvcharexpr <- function (u)
{
  ischar <- tryCatch(is.character(eval_tidy(u)),
                     error=function (e) FALSE)

  if (!ischar)
  {
    u <- quo_text(u)
  } else {
    u <- eval_tidy(u)
  }
  u
}

Try the genvar package in your browser

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

genvar documentation built on Jan. 21, 2020, 9:07 a.m.