You should see roughly the following (this screen shot is from a Mac version of RStudio, yours may be slightly different). Windows: Tools → Global Options… → Git/SVN Unix-like: RStudio → Preferences → Git/SVN Open RStudio and come to the screen in the image below with the following steps in the menu: ![]() The next step is to be sure RStudio is recognizing that you have Git installed. Now you should see your name and email as in the example image below (note, the email address here as been redacted but you should see one in your list).Ĭongratulations! Git is now installed and configured on your computer. These can be set with the following Terminal commands, note replace YOUR NAME and YOUR EMAIL with the correct information: git config -global user.name "YOUR NAME" The only two things you really need to set are your name and email address. ![]() If your name is not in the “user.name” line it means Git is not configured. Open the executable “git-bash” and type: git -version Navigate to wherever you installed Git, it will probably be in the “Program Files” or somewhere similar. You should have downloaded Git and have it installed in a folder. Now you should see your name and email as in the example image below.Ĭongratulations! Git is now installed and configured on your computer. Git config -global user.email "YOUR EMAIL" If nothing comes up it means nothing is configured. To check first if you’ve already configured Git type: git config -list There are several useful sources on the internet for how to install Git for Unix-like systems.Īssuming you see a version listed, we can configure your Git to include your information. If you do not see a version listed it means you do not have Git installed. You should see a version of Git available (e.g. Open the Terminal and type: git -versionĪs is displayed in the example image below. If you are on Unix-like machine (Mac or Linux) follow the instructions here, otherwise skip down to the section on how to configure Git for Windows. A PDF of the slides can be downloaded here. Feel free to pause the video as needed and read the more detailed instructions below. There is a video in end of this post which provides an overview of the course and explains the initial set-up steps. ![]() If you already have R installed, be sure it is the newest version. The pre-first lesson focuses on setting you up with RStudio and Git. The other lessons can be found in there: Lesson 1 Lesson 2 Lesson 3 Lesson 4 Lesson 5 Lesson 6, Part 1 Lesson 6, Part 2.Īs a reminder, there are some steps you should have done before starting this pre-first lesson:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |