Reproducible example

So you’ve been asked to make a reprex

Introduction If you’ve found yourself here, you’ve probably been asked to create a reproducible example, or reprex, in response to a question you asked on the RStudio Community Site. This post provides a cursory overview of both creating a reprex as well as how to share your reprex on the RStudio Community site. A brief reprex “how to” Install the development version of reprex from GitHub and then load the reprex package Highlight the code and associated packages, as indicated by library(package_name), like so: Copy the highlighted code by pressing Ctrl/Cmd + c In the console type reprex() and hit Enter/Return Everything that you need to post a reprex is now automatically stored on your clipboard!