9/14/2023 0 Comments Connect rstudio to githubJust keep them all separate, but ideally contained in some other folder, like “GitHub_Projects”, which is NOT a GitHub repository or RProject, just a boring regular folder. If you try to put a folder that’s an RProject inside another folder that’s an RProject, stuff is gonna go wrong. Treat each RProject/git repository as a completely separate entity, containing only the stuff pertaining to that project. A common way to do this would be a folder under your username called “GitHub_Projects” or something like that.Īnother critical thing with git and GitHub is that you should never nest projects inside of projects. For the rest of your life, however, you can put GitHub repositories anywhere on your computer, but it’s really useful to keep them well organized. It should look like this:įor the rest of this class, everything we do will be in the R_DAVIS_2020 folder on your Desktop. You should make a folder on your desktop called R_DAVIS_2020 spelled EXACTLY like that, and put your new GitHub repository into that folder. You should put this project into a subdirectory, which will be Desktop/R_DAVIS_2020 for this class. This is generally preferred so you can keep track of things more easily. If you hit Tab, the Project directory name will automatically populate with the exact name of the repository. In the “ Repository URL” paste the URL of your new GitHub repository. In RStudio, start a new Project: File > New Project > Version Control > Git. Now we’ll create an RStudio Project and link our Github repository (following Section 13.3 of happygitwithR). Create a New Version Controlled ( git) RStudio Project
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |