Skip to content

reprex

2.1.1

Prepare Reproducible Example Code via the Clipboard

5packages depend
5.9Mdownloads / year
78.7%test coverage
13/13checks pass

Overview

About
Maintained by Jennifer BryanFirst published 2017-01-1012 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 1.6 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.63
78.7%
Coverage · measured lines
100%
Documentation · exports
12
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 600 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
40%
Documented parameters
95%
Return-value docs
71%
References docs
0%

Downloads

5.9M
CRAN downloads in the past year
Rank #170 · ~16.2K/day · ~493.7K/mo
Daily download trend is not available in this view yet.
381.2K30 days
1.1M90 days
5.9M1 year
Compare downloads with other packages →
Also on41K r2u156 autocran938.3K conda_forge6.3K c2d4u

Repository

Repository
752Stars
90Forks
23Open issues
6Open PRs
11Releases
775Commits
31Contributors
rrmarkdownstackoverflowgithubreproducibility
775 commits · Last activity 2026-04-10 · -0.1% stars, 30d

Stars over time

2025-06-29 · 7412026-07-30 · 752

Repository practices

Upstream repositoryBeta

10 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/tidyverse/reprex on 2026-08-23.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (3)
AirVS CodeRStudio project
Show all practices
Coverage (1)
Codecov
Governance and community (2)
Issue templatesSupport guide
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.6
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
5direct
81indirect

Code & Tests

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (5)
Author, Maintainer
Author · added in 2.0.2
Author · added in 0.2.0
Author · added in 0.2.0
Copyright holders (1)
Copyright holder, Funder · added in 2.1.0
Funders (1)
Copyright holder, Funder · added in 2.1.0
Listed in earlier versions (1)
no longer listed · 0.2.0 to 2.0.2
Package Timeline

12 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 2.1.1Latest
    2024-07-06 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 2.1.0
    2024-01-11 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 2.0.2
    2022-08-17 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 2.0.1
    2021-08-05 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 2.0.0
    2021-04-02 · diff ↗
  • 1.0.0
    2021-01-27 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.3.0
    2019-05-16 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.1
    2018-09-16 · diff ↗
Show 8 earlier events
  • 0.2.0
    2018-06-23 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.2
    2018-01-26 · diff ↗
  • orphanedOrphaned by its maintainer
    2018-01-26
    policy violations, and offending code disabled
  • R
    R 3.4.0 released · 2017-04-21
  • 0.1.1
    2017-01-13 · diff ↗
  • 0.1.0
    2017-01-10
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2017-01-10
Total releases
12 / 9 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.6
Download size
1.0 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("reprex")
Bryan, J., Posit Software, PBC, Dervieux, C., Hester, J., Robinson, D., & Wickham, H. (2024). reprex: Prepare Reproducible Example Code via the Clipboard (Version 2.1.1) [Computer software]. https://doi.org/10.32614/CRAN.package.reprex

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for reprex version 2.1.1 [Data set]. HJJB, LLC. Data release v2026-08-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy