https://github.com/ashander/runr
a tidy simulation runner
https://github.com/ashander/runr
r simulation tidy
Last synced: about 1 year ago
JSON representation
a tidy simulation runner
- Host: GitHub
- URL: https://github.com/ashander/runr
- Owner: ashander
- License: other
- Created: 2016-03-31T07:16:14.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-04T19:59:53.000Z (almost 10 years ago)
- Last Synced: 2025-01-29T08:47:37.613Z (over 1 year ago)
- Topics: r, simulation, tidy
- Language: R
- Homepage: http://ashander.github.io/runr/doc/debug-profile.html
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output:
md_document:
variant: markdown_github
---
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.
[](https://travis-ci.org/ashander/runr)
[](https://codecov.io/github/ashander/runr?branch=master)
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# Install
`devtools::install_github('ashander/runr')`
# Example Usage:
```{r, run-ex}
require(devtools)
devtools::run_examples('.')
```
# Details
## Vignette
For further examples, [read the vignette](http://www.ashander.info/runr/doc/debug-profile.html).
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:
```{r, help}
cat(readLines('man/run.Rd'), sep = '\n')
```