Skip to content

reprex

Prepare Reproducible Example Code via the Clipboard

v2.1.1 · Jul 6, 2024 · MIT + file LICENSE

Description

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.

Downloads

CRAN

317.3K

Last 30 days

190th

1.2M

Last 90 days

6.1M

Last year

Trend: -20.6% (30d vs prior 30d)

r2u CRAN

3.4K

Last 30 days

10.8K

Last 90 days

42.1K

Last year

Trend: -5.9% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (5)

imports

Dependency Network

Dependencies Reverse dependencies callr cli clipr fs glue knitr lifecycle rlang rmarkdown rstudioapi withr tidyverse constructive projmgr r4ds.tutorials targets reprex

Version History

13 tracked
new 2.1.1 Mar 10, 2026
updated 2.1.1 ← 2.1.0 diff Jul 5, 2024
updated 2.1.0 ← 2.0.2 diff Jan 10, 2024
updated 2.0.2 ← 2.0.1 diff Aug 16, 2022
updated 2.0.1 ← 2.0.0 diff Aug 4, 2021
updated 2.0.0 ← 1.0.0 diff Apr 1, 2021
updated 1.0.0 ← 0.3.0 diff Jan 26, 2021
updated 0.3.0 ← 0.2.1 diff May 15, 2019
updated 0.2.1 ← 0.2.0 diff Sep 15, 2018
updated 0.2.0 ← 0.1.2 diff Jun 22, 2018
updated 0.1.2 ← 0.1.1 diff Jan 25, 2018
updated 0.1.1 ← 0.1.0 diff Jan 12, 2017
new 0.1.0 Jan 9, 2017