Package: reprex 2.1.1.9000

Jennifer Bryan

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 <https://stackoverflow.com> and <https://github.com>, 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.

Authors:Jennifer Bryan [aut, cre], Jim Hester [aut], David Robinson [aut], Hadley Wickham [aut], Christophe Dervieux [aut], Posit Software, PBC [cph, fnd]

reprex_2.1.1.9000.tar.gz
reprex_2.1.1.9000.zip(r-4.7)reprex_2.1.1.9000.zip(r-4.6)reprex_2.1.1.9000.zip(r-4.5)
reprex_2.1.1.9000.tgz(r-4.6-any)reprex_2.1.1.9000.tgz(r-4.5-any)
reprex_2.1.1.9000.tar.gz(r-4.7-any)reprex_2.1.1.9000.tar.gz(r-4.6-any)
reprex_2.1.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
reprex/json (API)
NEWS

# Install 'reprex' in R:
install.packages('reprex', repos = c('https://tidyverse.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/tidyverse/reprex/issues

Pkgdown/docs site:https://reprex.tidyverse.org

On CRAN:

Conda:

githubreproducibilityrmarkdownstackoverflow

15.74 score 749 stars 130 packages 555 scripts 432k downloads 13 exports 32 dependencies

Last updated from:0dcf301940. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK142
source / vignettesOK187
linux-release-x86_64OK134
macos-release-arm64OK119
macos-oldrel-arm64OK102
windows-develOK90
windows-releaseOK80
windows-oldrelOK73
wasm-releaseOK162

Exports:reprexreprex_addinreprex_cleanreprex_documentreprex_htmlreprex_invertreprex_localereprex_rreprex_renderreprex_rescuereprex_rtfreprex_selectionreprex_slack

Dependencies:base64encbslibcachemcallrclicliprdigestevaluatefastmapfontawesomefsgluehighrhtmltoolsjquerylibjsonliteknitrlifecyclememoisemimeprocessxpsR6rappdirsrlangrmarkdownrstudioapisasstinytexwithrxfunyaml

Reprex do's and don'ts

Rendered fromreprex-dos-and-donts.Rmdusingknitr::rmarkdownon May 17 2026.

Last update: 2022-03-04
Started: 2017-10-15

Readme and manuals

Help Manual

Help pageTopics
Render a reprexreprex
Render a reprex, convenientlyreprex_addin reprex_selection
reprex output formatreprex_document
Render a reprex in a specific localereprex_locale
reprex optionsopt reprex_options
Render a document in a new R sessionreprex_render
Venue-specific shortcutsreprex_html reprex_r reprex_rtf reprex_slack reprex_venue
Un-render a reprexreprex_clean reprex_invert reprex_rescue un-reprex