runr: a tidy simulation runner

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.

Travis-CI Build Status Coverage Status

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Install

devtools::install_github('ashander/runr')

Example Usage:

require(devtools)
devtools::run_examples('.')

Details

Vignette

For further examples, read the vignette. It focuses on on debug and profile output.

Documentation

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')


ashander/runr documentation built on May 10, 2019, 1:52 p.m.