reprex: Prepare Reproducible Example Code via the Clipboard

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. The user's clipboard is the default source of input code and the default target for rendered output. 'reprex' also extracts clean, runnable R code from various common formats, such as copy/paste from an R session.

Package details

AuthorJennifer Bryan [aut, cre] (<>), Jim Hester [aut] (<>), David Robinson [aut], Hadley Wickham [aut] (<>), RStudio [cph, fnd]
MaintainerJennifer Bryan <>
LicenseMIT + file LICENSE
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the reprex package in your browser

Any scripts or data that you put into this service are public.

reprex documentation built on May 16, 2019, 5:07 p.m.