runr provides an opinionated wrapper to run simulations and recover tidy output.
The packages exports one function, run
, which runs a function with some
varying parameters, and some fixed parameters. run
, expects the varying
parameters in a data.frame and the fixed parameters in a list or environment.
It returns the results in an data.frame that can be cbind
-ed to the input
data.frame.
knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
devtools::install_github('ashander/runr')
require(devtools) devtools::run_examples('.')
For further examples, read the vignette. It focuses on on debug and profile output.
Better to install the package and do require(runr); ?run
, but here's an ugly
preview of the help file:
cat(readLines('man/run.Rd'), sep = '\n')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.