Correct workflow reading in local file for reprex

Reading data in from a local file is contrary to the goals of a reproducible example, which are for the example to be self-contained and not dependent on having access to your local file system.

Even though you got reprex to run in your second example, the result isn't reproducible: I can't copy and paste it and have it run, because I still don't have access to your CSV file.

This discussion has several ideas for how to include your own data in a reproducible fashion:

If you'd like feedback or help on how to make any of those solutions work for your case, definitely go ahead and ask!

P.S. Thank you for asking this question — it's a common point of confusion! And thank you even more for trying to make a reprex :grinning:

2 Likes