The two main sections are files and directories and the README which should contain a narrative description of the project. At this link, you may sign into your GitHub account or create one if you have not already. Let’s take a second to acquaint ourselves with GitHub. You will need this repo in your working environment if you would like to follow along through this workshop. We are going to use the third option to download this repository from GitHub and work with it hands on. We have a repository already prepared for this workshop at. Just choose which directory on your computer you wish to save the project directory and your good to go! The name of the repository will automatically populate. When you choose this option there will be a place to paste the url of the GitHub (or other hosting platform) url. This is the option we will do for our workshop.įirst, indicate which version control language you will be using (Subversion is another version control system, though less popular than Git) The final option is to continue a version controlled project. This is by far the most labor intensive way to do it, so remember to add version control at the beginning of any new project.Ĭontinue a version-controlled project Method #3 To see a tutorial of this process, please see episode 14 “Using Git from RStudio” in Version Control with Git. You can also add existing R files to a project and setup version control if you’ve done neither. We won’t take the time to cover this here, but if you’ve already started a Quarto project WITHOUT version control, you have the option to add version control retrospectively. *Optionally, check the box in the bottom left corner “Open in new session” if you want it to appear in a new RStudio window.Īdd versioning to an existing project Method #2 underscores “_”, dashes “-“ or camel case “NewProject” is the recommended way to name this directory/file. *Note when you choose directory name, it will create a new directory in the directory you specified along with an. Then, to use version control, make sure to check the “ Create a git repository” box as highlighted in this screen shot: To start an R project, you would navigate to File > new project rather than just File > new file.Īfter choosing New Directory chose new project on the next menu options. Starting a R Project with Version Control Method #1 The third option would be a project already under version control but options 1 and 2 will also give you the opportunity to use or add versioning to the project.
0 Comments
Leave a Reply. |