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.

Version: 2.1.1
Depends: R (≥ 3.6)
Imports: callr (≥ 3.6.0), cli (≥ 3.2.0), clipr (≥ 0.4.0), fs, glue, knitr (≥ 1.23), lifecycle, rlang (≥ 1.0.0), rmarkdown, rstudioapi, utils, withr (≥ 2.3.0)
Suggests: covr, fortunes, miniUI, rprojroot, sessioninfo, shiny, spelling, styler (≥ 1.2.0), testthat (≥ 3.2.1)
Published: 2024-07-06
DOI: 10.32614/CRAN.package.reprex
Author: Jennifer Bryan ORCID iD [aut, cre], Jim Hester ORCID iD [aut], David Robinson [aut], Hadley Wickham ORCID iD [aut], Christophe Dervieux ORCID iD [aut], Posit Software, PBC [cph, fnd]
Maintainer: Jennifer Bryan <jenny at>
License: MIT + file LICENSE
NeedsCompilation: no
SystemRequirements: pandoc (>= 2.0) -
Language: en-US
Materials: README NEWS
CRAN checks: reprex results


Reference manual: reprex.pdf
Vignettes: Reprex do's and don'ts


Package source: reprex_2.1.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): reprex_2.1.1.tgz, r-oldrel (arm64): reprex_2.1.1.tgz, r-release (x86_64): reprex_2.1.1.tgz, r-oldrel (x86_64): reprex_2.1.1.tgz
Old sources: reprex archive

Reverse dependencies:

Reverse imports: tidyverse
Reverse suggests: constructive, duckplyr, projmgr, r4ds.tutorials, targets


Please use the canonical form to link to this page.