[494cbf]: / man / quiet.Rd

Download this file

35 lines (32 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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}