Getting your work to work!

Clement Lee · September 4, 2024

Thank you to Teresa Lee at the Young Statisticians Section to invite me to present (slides) at the session “Getting your work to work” at the RSS conference. It’s a good opportunity for me to consolidate what I have been doing regarding reproducibility so far, in my teaching, research, and the current role of UKRN local network leads.

As a testament (which I also showed in the presentation), I managed to reproduce my work from my JASA paper, but with two big big caveats:

  1. dplyr::summarise_all(<function name>) has been deprecated, and I had to change it to e.g. dplyr::summarise(dplyr::across(dplyr::everything(), <function name>)), because I didn’t use any package management e.g. renv, packrat, etc.
  2. I used rm(list = ls()) to “clean” the environment. Shame on me.

Slide showing the bad practice of cleaning the environment in R

Good wake-up call. Let’s learn from the mistakes.

Twitter, Facebook