![]() Look in RStudio’s file browser pane for the README.md file. This should download the README.md file from GitHub. You should find yourself in a new local RStudio Project that represents your test repo on GitHub. I suggest you check “Open in new session”, as that’s what you’ll usually do in real life.A common rookie mistake is to have no idea where you are saving files or what your working directory is. Take charge of – or at least notice! – where the Project will be saved locally.myrepo, which coincides with the GitHub repo name. Accept the default project directory name, e.g.Still no luck? Go to chapter 13 for tips on how to help RStudio find Git. Do you NOT see an option to get the Project from Version Control? Restart RStudio and try again.Now you have a copy of the original repository on your GitHub account. In this example, we are referring to To the upper left corner, click on the fork button and you will have successfully forked the repository. In “Repository URL”, paste the URL of your new GitHub repository. On your GitHub account, go to the repository you want to fork. File > New Project > Version Control > Git.ġ2.3 Clone the test GitHub repository to your computer via RStudio Here’s how to do that in the shell, if current working directory is myrepo: cd. It’s just a regular directory on your computer. ![]() It’s a deeply pragmatic coping strategy if your local Git repo is goofed up, but the version on GitHub is pretty current.ĭelete the folder corresponding to the local repo any way you like. Furthermore, GitHub released a GitHub Desktop GUI for. This is a actually a workflow we refer to elsewhere (see 37 as “burn it all down”. While Git uses a command line interface, GitHub was created to give Git a slicker looking web interface. However, I encourage you to delete the local repository, so you can experience how we use RStudio to clone it and get a local copy. If you just completed the previous chapter, Connect to GitHub, that repo will be perfect! If you don’t have a suitable test repository on GitHub, follow the instructions in the next section. You will also need a test repository on GitHub. You’ve confirmed that you can push to / pull from GitHub from the command line (chapter 11).You’ve introduced yourself to Git (chapter 7).You’ve installed/updated R and RStudio (chapter 5).You’ve registered a free GitHub account (chapter 4).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |