Rstudio lessons12/2/2023 ![]() A message will then pop up asking you if you confirm the Git repository, say “Yes”. On the left hand side menu choose “Git/SVN” and change the setting of “Version control system” from “(None)” to “Git”. A window will pop up called “Project Options”. Click on it and then choose “Project Options…” as shown below. It should now say the name of your project (for example, mine says “rcourse_lesson1”). To do this go to the top right hand corner that you went to originally to make your project. You’ve just successfully created a R Project! Commit to Gitīefore beginning any coding we’ll want to make sure that our version control (Git) is set up. When you’ve navigated to your folder click “Create Project”. “data”), be sure to only browse into the main root directory. Note, DO NOT browse into one of the sub folders we created (e.g. The file path to mine is “~/Desktop/rcourse_lesson1”, as displayed below, since I created my folders on the Desktop. Then use the “Browse…” button to find our root folder. ![]() Since we just created our folder structure choose “Existing Directory”. See below for an example of what the window should look like. A window will then popup asking you how you would like to create your project: 1) “New Directory”, 2) “Existing Directory”, or 3) “Version Control”. If you have something important there click “Save”, if you’re not sure click “Save”, otherwise feel free to click “Don’t Save”. You will be asked if you want to save the current workspace. If you want to change the arrangement of your panes go to “Preferences” → “Pane Layout”. For example, you may have the console in the bottom left hand corner instead of the top right. I want to quickly note that your RStudio may not look exactly the same as mine. An example screen shot is provided below. ![]() To make a new Project, go to the top right hand corner of RStudio and click on where it says “Project: (None)” and then choose “New Project…”. I’m also going to put my data file (“rcourse_lesson1_data.txt”) into my “data” folder so that it looks like below. I’m going to create a folder called “rcourse_lesson1” and then inside of it four folders: 1) “data”, 2) “figures”, 3) “scripts”, and 4) “write_up”. Before we make a Project though we’re going to start by making our directory that will store everything we’re going to do in RStudio. Using Projects also allows us to commit to Git which is a useful method of version control. An R Project is a powerful way to have a self-contained environment for each of your projects.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |