Open castower opened 4 years ago
Hi Courtney,
I’ll need some information to help you. Since all GitHub repos are already under version control I’m a little confused.
Are you saying you currently have a repo for your group project (the private repo that your teammates and you share) and an additional one that you made? I’m not sure what you mean by if they should be in the same folder or not but as a general rule, never place another GitHub repo inside another GitHub repo.
Respectfully,
Cristian
— Cristian E. Nuno
From: Courtney notifications@github.com Sent: Tuesday, April 7, 2020 4:55:52 PM To: DS4PS/cpp-528-spr-2020 cpp-528-spr-2020@noreply.github.com Cc: Cristian Ernesto Nuno cenuno@syr.edu; Mention mention@noreply.github.com Subject: [DS4PS/cpp-528-spr-2020] R Studio Github Version Control (#16)
Hello @cenunohttps://github.com/cenuno,
I'm currently setting up my Github project for version control and I'm curious if it should be in the same folder as the Github Desktop repository or a separate one?
Thanks! Courtney
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/DS4PS/cpp-528-spr-2020/issues/16, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFZB2SYUYDTQAVDURVZNH6LRLO4QRANCNFSM4MDQJMDA.
@cenuno we have the private one for my group that I access through Github Desktop and now I'm trying to set up the project to be able to use the 'here' package in RStudio. I'm curious if I can link them somehow that they're the same or if I should have them in two separate folders.
Ah, I understand now. Thank you for clarifying!
You have an existing local directory that is already synced with GitHub Desktop. However, it is not currently an RStudio Project which is causing problems with the here
package.
Follow these steps to associate an existing directory with an RStudio Project:
In RStudio, go to File
--> New Project
From the prompt, select Existing Directory
Next, hit the Browse
button and find the file path of the directory of interest.
Then hit the Create Project
button.
A new RStudio window will open (you've now entered an RStudio Project). You'll notice a new file (.Rproj
) that stores some metadata that tells RStudio that this a RStudio Project. That file helps the here
package identify the root directory.
You can now load the here
package and you should now see the following output immediately in the R console:
# type directly into the R console
library(here)
here() starts at /Users/cristiannuno/RStudio_All/analytic_project
That should allow you to use the here
package while setting up an existing directory as an RStudio Project.
@cenuno thank you! Sorry, for the confusion! That is exactly what I needed :)
@castower no worries! I appreciate your patience with me :)
Now that you're learning to bucket work in RStudio using the Projects feature, be sure to 'close' (go to the File
tab and then click on Close Project
) and 'open' (go to the File
tab and then click on Open Project...
) projects as you exit and enter them.
That way you're always aware of where work is being saved.
Hello @cenuno,
I'm currently setting up my Github project for version control and I'm curious if it should be in the same folder as the Github Desktop repository or a separate one?
Thanks! Courtney