Data analysis projects often contain many files - the data itself, R scripts to work with the data, graphs and visualizations generated from the data, documentation, etc.
To organize all this content (and make it easily shareable with colleagues or peers), you can take advantage of an RStudio feature called Projects.
RStudio Projects organize your content into a “container” with its own working directory (where your analysis occurs), workspace (where R activity and output are temporarily saved), history, and documents.
When sharing your work, you can simply share the RStudio Project with collaborators, and they’ll have everything they need to work with your analysis and its related components.
On the top right of RStudio is the Project dropdown where you can create new Projects as well as open and manage existing Projects:
Here are the steps for creating a new Project:
When you create a new Project in RStudio the following things happen:
1. A New Project Directory is Created (or an Existing One is Used)
2. An .Rproj File is Created
3. The Working Directory is Set
setwd().4. A Separate Environment is Used
5. History, Settings, and Open Files are Saved
Learn more about RStudio Projects in the official RStudio documentation...
No subscriptions, no auto-renewals.
Just a simple one-time payment that helps support my free, to-the-point videos without sponsered ads.
Unlocking gets you access to the notes for this video plus all 200+ guides on this site.
Your support is appreciated. Thank you!