More often than not, the way academics learn R, at least in my experience and among my peers, is through a kind of trial by fire—often fueled by term paper deadlines or the looming pressure of thesis and dissertation submissions. It’s more like learning in the middle of a wildfire, to be honest. Learning R (or any coding tool) takes a backseat to the immediate goal: submitting the paper or presentation abstract. The familiar mantra becomes, “I’ll clean up the code later,” but those end up being famous last words before orphaning a repository, incomplete and messy.
This chaotic learning process has predictable pitfalls. From absolute paths breaking code on a different machine to accidentally deleting entire directories and freaking out in meetings when code refuses to run on a colleague’s setup, I’ve seen it all (Jenny Bryan would burn everyone computers). But it was through these frustrations that I began to unlearn bad habits and embrace reproducibility. Unlearning requires constant effort. Tools like version control, renv
, .Rproj
, and others became liberating. Yes, they require a little more planning at the start of a project, but having code that runs seamlessly on another person’s machine without issue? That’s priceless.
For software developers, this might sound like old news, but for many biologists, reproducibility is still an uphill battle. We’re more familiar with the thrill of analyzing data than the discipline of building reproducible environments.
Personally, my drive to write and share code comes from an innate need to help others benefit from the little I’ve learned. But more than that, creating rigorous and reproducible science isn’t just an academic exercise; it’s a moral compass. My journey didn’t stem from learning best practices. As a trained ecologist and evolutionary biologist (EEB), R and computational tools were primarily a means to answer the big questions in my field. But what really pushed me to dive deeper was frustration—specifically, with how knowledge is often transferred in academia.
Back to top