#reprex
Sometimes when building a minimal reprex for a bug, you discover that you were the bug all along. I assume this is what Kafka was on about.
January 22, 2025 at 7:32 PM
Most notably: added reprex::upload_gist() to facilitate uploading reprexes to github gists (a lot like @themockup.blog’s old carbon uploads!) github.com/tidyverse/re...
Add `upload_gist()` to upload `reprex()` output to github gist via `gh::gh()` by tanho63 · Pull Request #481 · tidyverse/reprex
Closes #190. Also, adds a small bugfix to prevent a preview from opening when reprex(html_preview=FALSE) which makes test code a little prettier. reprex(print(pi), html_preview = FALSE) |> uploa...
github.com
September 19, 2025 at 8:06 PM
A tale as old as time:
- Oh no! Code is broken, something must be wrong 😰
- Create reprex 🧑‍💻
- Find solution in the process of creating reprex 🥳

Help others help you, and maybe help yourself in the process: reprex.tidyverse.org
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, a...
reprex.tidyverse.org
November 27, 2024 at 6:37 PM
Relatedly, I have to say that @jennybryan.bsky.social and @hadley.nz and everyone else who made "reprex" a word and made it so easy to create one have done an incredible service to the #RStats community
How often do you see issues or feature requests with a nice, small reproducible example? Be honest…
January 14, 2025 at 6:14 PM
That is a very weird bug. Do you have a reprex we can use to figure out what’s going on?
March 16, 2026 at 10:48 PM
reprex() for wetware, but weird sessionInfo
February 4, 2026 at 12:09 AM
This is *incredibly* easy to set up in #rstats btw, thanks to @hrbrmstr.dev (rud.is/b/2023/07/07...) (reprex code here: gist.github.com/andrewheiss/...)
September 22, 2023 at 5:38 PM
Wow. Do you have a reprex I can look at for this?
October 1, 2023 at 6:18 PM
I had a great time teaching a "Writing Better R Code" workshop for some of our Faculty of Health and Medicine postgraduates today!

➡️ AM: Workflows, linting, code structure, writing a reprex, & managing dependencies
🤝 PM: Introduction to collaborating on R code using Git and GitHub

#RStats #StatsEd
October 23, 2024 at 5:36 PM
I think there is an implicit filtering step at work. If people work on making a reprex, some percentage of the time they will figure out the actual problem. Maybe 20% of the time?

Also, people who don’t use a reprex are more likely to put less thought into the problem or their code (or search SO).
January 15, 2025 at 1:56 AM
In case you or others didn’t already know, R {reprex} is a fabulous little utility that is underutilized in the R community.

If posting an R question or providing a solution suggestion, {reprex} improves the quality of interaction significantly.
March 12, 2025 at 7:54 AM
Are they making submit a reprex?
December 16, 2024 at 9:20 PM
? reprex ? are there multiple y values per x ?
August 12, 2025 at 8:23 PM
I'll see how horrible my reprex is
March 8, 2025 at 10:45 PM
I demonstrated how to use the #reprex package 📦! I loaded it and explained the workflow: I copied lines of code from my console (pretending Leo has a question ❓), then ran the reprex() function without any arguments 💻.

@jennybryan.bsky.social #RStats
January 27, 2026 at 7:49 PM
The #JSM2025 roasts getting a reprise at @hadley.nz’s #user2025 keynote 😂
August 8, 2025 at 9:24 PM
All my reprex end this way
January 22, 2025 at 9:30 PM
Or use some ggplot stage() + after_scale() trickery to lighten the colors so the grid lines aren’t visible (reprex: gist.github.com/andrewheiss/... )
December 6, 2024 at 9:21 PM
I explained how the reprex workflow helps with collaboration 🤝! I described a scenario where I ask a question about why the mean is 2.5 and not 3, and Nina wants to help by running the same code 💻. She can easily copy-paste the #reprex output and it actually runs ✅!

@jennybryan.bsky.social #RStats
January 27, 2026 at 7:58 PM
Yep! Not a package, just a bunch of manual {tidybayes} data wrangling. I have a small reprex for it here using polr() gist.github.com/andrewheiss/...
fuzzy-stacked-ologit-frequentist.md
GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
February 20, 2025 at 6:47 PM
Base's `subset()` is almost there...but having subset(subset = ...) is a bit...confusing.

If we had a function for column selection and another for row-subsetting that would cover 80% of my dplyr usage.

#rstats
February 2, 2026 at 6:09 PM
FYI, if you want to post a RMD file as a reprex on #StackOverflow or elsewhere, just put ~~~ at the beginning and end of the code. For example:
~~~
---
title: "My RMD"
---

Some text.

```{r}
library(tidyverse)
```
```{r}
head(mydat)
```
~~~
September 2, 2023 at 6:06 AM
February 13, 2025 at 12:18 PM
I seem to have started using them for plain language reprex. LLMs have become a rubber duck in my case.
October 14, 2025 at 7:02 AM