rturf 6: RStudio projects or setwd
Sometimes I want to use R to do something real quick. But I’m struggling to think of a good example right now. More often what I’m doing can be considered a project—it will have more than one file.
There could be some files with data, some files with R code that makes some calculations or generates charts from the data, and in those files the computer needs to know where to find the files that are being used.
I made this screencast to explain a little about the convenience of using RStudio projects.
For more about this, see:
Project-oriented workflow by Jenny Bryan
Software Carpentry’s lesson on Project Management With RStudio as part of their course on R for Reproducible Scientific Analysis