Thanks Jenny!
The me from 2020 didn't know that π
. But it's great that you clarified it! I've just been playing a bit with Adobe Express clip maker to make these clips. Though first I had to remove filler words and pauses :P
In any case, I love #reprex and want to spread the love around =)
That's exactly why you need to include the library() statements showing which packages you're actually using π‘. I emphasized that all of this - the whole #reprex approach - is simply about making it easier for other people to help you fasterβ‘π€. These are the main advantages of the reprex package! β¨ππ½
I explained why including context is crucial π! I pointed out that someone could just paste code like "GRanges from 1 to 1000 plus..." but then I would be confused π asking "where does this function come from? What package is this from?" π¦β
@jennybryan.bsky.social #RStats #reprex
I demonstrated running a #reprex in a fresh #RStats session π» & opened it in my browser π. It showed the π¦ loading with all its messages, then the function itself. I pointed out that I had made a syntax error: I missed the colon before the plus sign ββ, which caused an error
@jennybryan.bsky.social
I emphasized this is way better than screenshots πΈβ since you can't copy code from those. That's the core idea of the #reprex package π¦β¨!
For more information about the materials discussed in this video, check reprex.tidyverse.org.
#RStats
I then broke down what #reprex() does behind the scenes π§: it recognizes which parts are code vs. console prompts (like the > symbols), reruns everything in a fresh R session π, captures the output, and creates a tiny temporary website π that makes it super easy to copy-paste.
#RStats
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
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
They believe it should be easy for others to help them β But I pointed out this approach has issues, which is why I introduced the #reprex package π¦ as the solution to make getting help easier! β¨
For the full length video, check youtu.be/LfUFxHFhXTE.
For more check reprex.tidyverse.org.
I explained how a common problem makes it harder for people to get help π€. People often think they've provided everything needed - posting their code online π», showing how to recreate objects, sharing all the code they ran, and even including the output π.
@jennybryan.bsky.social #RStats #reprex
I explained the common problem people encounter when asking for coding help π€. I showed how someone might copy code they ran, paste it, ask a question. I was setting up to explain what's wrong with this approach β of sharing code for troubleshooting purposesπ» #RStats #reprex @jennybryan.bsky.social
I re-edited this 2020 video using Adobe Premier Pro's features for removing filler words, pauses, and text-based editing. In total it went down from 20:53 min to 12:41. I hope that you get to (re-)enjoy it ^_^.
@jennybryan.bsky.social
#RStats #reprex #reproducibility #JHPCE
youtu.be/LfUFxHFhXTE
While I generally (out of principle) stay away from tidy this made me chuckle out loud.
#rstats #funwithcode #reprex