Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (32 sloc) 0.935 kb
\title{Replicate expression and discard results.}
r_ply(.n, .expr, .progress = "none", .print = FALSE)
\item{.n}{number of times to evaluate the expression}
\item{.expr}{expression to evaluate}
\item{.progress}{name of the progress bar to use, see
\item{.print}{automatically print each result? (default:
Evalulate expression n times then discard results
This function runs an expression multiple times,
discarding the results. This function is equivalent to
\code{\link{replicate}}, but never returns anything
r_ply(10, plot(runif(50)))
r_ply(25, hist(runif(1000)))
Hadley Wickham (2011). The Split-Apply-Combine Strategy
for Data Analysis. Journal of Statistical Software,
40(1), 1-29. \url{}.
Jump to Line
Something went wrong with that request. Please try again.