Skip to content
R for the Rest of Us Logo

This lesson is locked

Get access to all lessons in this course.

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

  1. Download the course project

install.packages("usethis")
library(usethis)
use_course("https://rfor.us/getting-started-materials")
  1. Open the project and look at the files within it.

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.

Auva Shariatmadari

Auva Shariatmadari

June 8, 2021

Every time I open the program I get a notification asking me if I would like to install the tools regarding "Xcode" and the "git" command. Is this something I need to install?

David Keyes

David Keyes

June 9, 2021

You shouldn't have to, but I've heard of people being prompted to do this. I would try without installing it and if you have issues then install them.

LUCIANA LASRY BENCHIMOL REIS

LUCIANA LASRY BENCHIMOL REIS

June 22, 2021

I could not manage to put my directory in the desktop (it gives an error message). It allowed me to use another path such as 'my computer/documents/project.

David Keyes

David Keyes

June 23, 2021

Ok, it seems like you got it figured out. If you need help, please let me know!

Ariel Beera Puoric

Ariel Beera Puoric

July 10, 2021

Very great lesson

Hi David, thanks so much for creating this tutorial video to help us learn R! Learning today's lesson, I was able to create a new project, but can't find it on my desktop. I'm using a Mac. Could you please help me?

Thank you! Xinru

Did you have any luck locating it? I see that you commented on some later lessons so wondered if you had.

Maria Cristina Limlingan

Maria Cristina Limlingan

September 18, 2021

does it matter where the directory is located? is it recommended to put R on your desktop? I was planning to having it located in a box drive if it didn't matter

It doesn't matter where you put this project. However, to set you up for future success, I'd suggest not putting your work in a Box/Dropbox/Google Drive folder. This can cause issues if you're using Git/GitHub in the future. I'd just make sure to put your folder in a local directory (e.g. in your Documents folder).

Sandra Obradovic

Sandra Obradovic

March 15, 2022

Hi David, I did as instructed but when I try to open the project file by double-clicking it i get a message asking 'how do you want to open it?' and showing me different apps (none of which are R). the file itself doesnt have the R icon next to it but just an empty page icon (if that makes sense).

Charlie Hadley

Charlie Hadley

March 15, 2022

Hi Sandra! Can I check if you've installed RStudio yet? Once RStudio is installed it should be used by default for opening .Rproj files. If that doesn't work please come back to me, and let me know what Operating System you're using. Cheers, Charlie

Sandra Obradovic

Sandra Obradovic

March 15, 2022

Hi Charlie, yes i figured out what the problem was - I had an older version of R downloaded and i just had to update it before i could open the files. so all good. thank you :)

Charlie Hadley

Charlie Hadley

March 16, 2022

Ah - amazing! Glad it's working for you.

Created the new project fine but did not get an option to have it on my desktop. It is in my RStudio in the files pane but not on my desktop. Is this a problem?

Can you take a screenshot to show what you mean? I'm not sure I quite get it. You can post your screenshot on imgur.com and post the link here.

Jessica Brewer

Jessica Brewer

October 5, 2022

I'm having the following two issues:

  1. When I create a new project in a new directory, it does not prompt me to choose where I want to save it. Instead it just automatically saves the project to my Documents folder. Is there a way to change this?
  2. When I close out of RStudio, I get a notification from my computer that a file has been deleted (since my Documents are linked to OneDrive, I get this kind of notification any time a file is deleted anywhere). I want to make sure that I am not accidentally deleting things out of my Rproj files. Do I need to save before exiting? What's the appropriate way to exit RStudio (I just clicked the X in the top right corner)? Thank you!

Charlie Hadley

Charlie Hadley

October 5, 2022

Hello Jessica,

We would strongly recommend not putting code into file sharing systems like OneDrive, it's not a good solution for working with code. Particularly if you plan to use GitHub in the future.

When you use the "New directory" button in the project menu you should see this dialog https://share.getcloudapp.com/7Kuk66p9 which should allow you to change the location to somewhere else on your machine.

You're exiting RStudio in the correct way - just click the X for closing the application.

Thanks, Charlie

Mercy Abarike

Mercy Abarike

March 25, 2023

can delete a project after creating it? Can i rename an existing project

David Keyes

David Keyes

March 27, 2023

Yes to both! To rename, you simply rename the directory where the project lives. To delete, just delete the directory.

Jessica Smith

Jessica Smith

August 22, 2023

Hi! I loaded a bear of a dataset into R before adding this data to a project... is there a way I can transfer the data frame into a project without having to reload it? it tooks 19 hours to load in the first time....

David Keyes

David Keyes

August 24, 2023

That is a big dataset! What format is your data in now?

Bianca Guevara Magallanez

Bianca Guevara Magallanez

August 24, 2023

My error message is saying: package ‘usethis’ is not available (for R version 3.3.3)

David Keyes

David Keyes

August 24, 2023

You should definitely upgrade R! That will take care of this problem.