R/supprint.R

Defines functions supprint

# supprint: a suppressable print() function
# It takes:
#   x: a print()able object
#   quote: logical, indicating whether or not strings should be printed with surrounding quotes.
# Date: September 28, 2026
# Author: Alexis Dinno with guidance from Duncan Murdoch of the R Core Team

supprint <- function(x, quote=FALSE) {
  message_verbosity <- getOption("rlib_message_verbosity", "")
  if (message_verbosity != "quiet")  
    print(x, quote=quote)
  else
    invisible(x)
  }

Try the LoopAnalyst package in your browser

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

LoopAnalyst documentation built on Oct. 5, 2026, 1:07 a.m.