While on my visit to the University of Nebraska, Lincoln, I had the pleasure of taking over Chris Chizinski’s R class on Friday (2018-11-02).
I demo’d a few things about setting up RStudio, using RStudio packages and the here package, and then walked through a workflow of doing data analysis, converting code into functions, and writing scripts and functions to be more accessible for readers.
For reference, here are my slides.
Motivation What I used to do Why use an R package? How-to Guide Requirements Tutorial Setup Workflow Bonus steps Other Readings Motivation I’ve been wondering about the best way to organize (reproducible) research projects in R for a while now. I figured this might be a good spot to write up some thoughts.
What I used to do Initially my projects would consist of just a few R files that separate out functions from a main script that calls the functions.