Prepare Reproducible Example Code for Sharing

Convenience wrapper that uses the 'rmarkdown' package to render small snippets of code to target formats that include both code and output. The goal is to encourage the sharing of small, reproducible, and runnable examples on code-oriented websites, such as <> and <>, or in email. 'reprex' also extracts clean, runnable R code from various common formats, such as copy/paste from an R session.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1.1 by Jennifer Bryan, 3 months ago

Report a bug at

Browse source code at

Authors: Jennifer Bryan [aut, cre], David Robinson [aut]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports callr, clipr, knitr, rmarkdown, tools, utils, whisker

Suggests covr, devtools, formatR, fortunes, miniUI, rstudioapi, shiny, shinyjs, testthat

System requirements: pandoc (>= 1.12.3) -

See at CRAN