R/construct_issues.R

Defines functions construct_issues

Documented in construct_issues

#' Show constructive issues
#'
#' Usually called without arguments right after an imperfect code generation,
#' but can also be called on the 'constructive' object itself.
#'
#' @param x An object built by `construct()`, if `NULL` the latest encountered
#'   issues will be displayed
#'
#' @return A character vector with class "waldo_compare"
#' @export
construct_issues <- function(x = NULL) {
  if (is.null(x)) return(globals$issues) # nocov
  x$compare
}

Try the constructive package in your browser

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

constructive documentation built on April 3, 2025, 9:39 p.m.