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/scat.R
\name{scat}
\alias{scat}
\title{Print formatted messages}
\usage{
scat(format, ..., use.newline = TRUE)
}
\arguments{
\item{format}{A format string passed to sprintf}
\item{use.newline}{Whether to append a new line at the end}
\item{\dots}{Arguments to pass to sprintf for dereferencing}
}
\value{
A formatted string printed to the console
}
\description{
A replacement for \code{cat} that has built-in sprintf formatting
}
\details{
Like \code{cat} but you can use format strings.
}
\examples{
apply(array(2:5),1, function(x) scat('This has happened \%s times', x) )
}
\author{
Brian Lee Yung Rowe
}
\keyword{data}
|