R/should_inform_unspecified.R

Defines functions should_inform_unspecified

Documented in should_inform_unspecified

#' Determine whether to inform about unspecified fields in spec
#'
#' Wrapper around `getOption("tibblify.show_unspecified")` to return `TRUE`
#' unless the option is explicitly set to `FALSE`.
#'
#' @returns `FALSE` if the option is set to `FALSE`, `TRUE` otherwise.
#' @export
#' @examples
#' should_inform_unspecified()
should_inform_unspecified <- function() {
  !rlang::is_false(getOption("tibblify.show_unspecified"))
}

Try the tibblify package in your browser

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

tibblify documentation built on May 9, 2026, 5:07 p.m.