Get access to all lessons in this course.
Getting Started with R
Projects
This lesson is locked
This lesson is called Projects, part of the Getting Started with R course. This lesson is called Projects, part of the Getting Started with R 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
Download the course project
install.packages("usethis")
library(usethis)
use_course("https://rfor.us/getting-started-materials")
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?
You need to be signed-in to comment on this post. Login.
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
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
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
June 23, 2021
Ok, it seems like you got it figured out. If you need help, please let me know!
Ariel Beera Puoric
July 10, 2021
Very great lesson
Xinru Guo
September 6, 2021
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
David Keyes
September 7, 2021
Did you have any luck locating it? I see that you commented on some later lessons so wondered if you had.
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
David Keyes
September 20, 2021
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
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
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
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
March 16, 2022
Ah - amazing! Glad it's working for you.
jeph mathias
September 21, 2022
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?
David Keyes
September 21, 2022
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
October 5, 2022
I'm having the following two issues:
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
March 25, 2023
can delete a project after creating it? Can i rename an existing project
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
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
August 24, 2023
That is a big dataset! What format is your data in now?
Bianca Guevara Magallanez
August 24, 2023
My error message is saying: package ‘usethis’ is not available (for R version 3.3.3)
David Keyes
August 24, 2023
You should definitely upgrade R! That will take care of this problem.