--- a +++ b/man/quiet.Rd @@ -0,0 +1,34 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/quiet.R +\name{quiet} +\alias{quiet} +\title{Suppress function messages and Concatenate and Print (cat)} +\usage{ +quiet(..., messages = FALSE, cat = FALSE) +} +\arguments{ +\item{...}{the functional expression to be evaluated} + +\item{messages}{logical; suppress all messages?} + +\item{cat}{logical; suppress all concatenate and print calls from \code{\link{cat}}?} +} +\value{ +quiet +} +\description{ +This function is used to suppress information printed from external functions +that make internal use of \code{link{message}} and \code{\link{cat}}, which +provide information in interactive R sessions. For simulations, the session +is not interactive, and therefore this type of output should be suppressed. +For similar behavior for suppressing warning messages see +\code{\link{suppressWarnings}}, though use this function carefully as some +warnings can be meaningful and unexpected. +} +\references{ +Sigal, M. J., & Chalmers, R. P. (2016). Play it again: Teaching statistics with Monte Carlo simulation. \code{Journal of Statistics Education, 24}(3), 136-156. +} +\author{ +Phil Chalmers +} +\keyword{internal}