Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 35 lines (32 sloc) 0.935 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 35
\name{r_ply}
\alias{r_ply}
\title{Replicate expression and discard results.}
\usage{
  r_ply(.n, .expr, .progress = "none", .print = FALSE)
}
\arguments{
  \item{.n}{number of times to evaluate the expression}

  \item{.expr}{expression to evaluate}

  \item{.progress}{name of the progress bar to use, see
  \code{\link{create_progress_bar}}}

  \item{.print}{automatically print each result? (default:
  \code{FALSE})}
}
\description{
  Evalulate expression n times then discard results
}
\details{
  This function runs an expression multiple times,
  discarding the results. This function is equivalent to
  \code{\link{replicate}}, but never returns anything
}
\examples{
r_ply(10, plot(runif(50)))
r_ply(25, hist(runif(1000)))
}
\references{
  Hadley Wickham (2011). The Split-Apply-Combine Strategy
  for Data Analysis. Journal of Statistical Software,
  40(1), 1-29. \url{http://www.jstatsoft.org/v40/i01/}.
}
\keyword{manip}
Something went wrong with that request. Please try again.