Skip to content
R for the Rest of Us Logo

Getting Started With R (RStudio)

Projects

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

Download the course project using this code:

install.packages("usethis")
library(usethis)
use_course("https://rfor.us/getting-started-materials")

Open the project and look at the files within it.

Note: By default, the project will download and open on your desktop. If you want to change the location, you can use this code (replace the C:/Users/david/Documents with a file path that actually exists on your system):

use_course("https://rfor.us/getting-started-materials",
		    destdir = "C:/Users/david/Documents")

However, we've seen many people run into issues when trying to change the location of the download in this way. Instead, my recommendation would be to download it to the default location and, if desired, move the entire folder using the Finder (Mac) or File Explorer (Windows) app.

Learn More

The RStudio website has a good overview of projects, as does the Teach Data Science website.

If you want to go really deep, there’s a nice video on LinkedIn Learning titled Why should you use projects in RStudio?

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.