GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing happygitwithr.com — Chapter 6 Install Git | Happy Git and GitHub for the useR 6 Install GitYou need Git, so you can use it at the command line and so RStudio can call it. If there’s any chance it’s installed already, verify that, rejoice, and skip this step. (But consider updating an existing installation.) Otherwise, find installation instructions below for your operating system. 6.1 Git already installed?Go to the shell (Appendix A). Enter and If you are successful, that’s great! You have Git already. No need to install! Move on. If, instead, you see something more like macOS users might get an immediate offer to install command line developer tools. Yes, you should accept! Click “Install” and read more below. 6.2 WindowsOption 1 (highly recommended): Install Git for Windows, also known as We like this because Git for Windows leaves the Git executable in a conventional location, which will help you and other programs, e.g. RStudio, find it and use it. This also supports a transition to more expert use, because the “Git Bash” shell will be useful as you venture outside of R/RStudio.
This also leaves you with a Git client, though not a very good one. So check out Git clients we recommend (chapter 8). FYI, this appears to be equivalent to what you would download from here: https://git-scm.com/download/. Option 2 (recommended): Install Git for Windows via the Chocolatey package manager. If this means anything to you, Chocolatey is like This obviously requires that you already have Chocolatey installed or that you are up for installing it. It is not hard and the instructions are here. This may be worthwhile if it seems likely you will be installing more open source software in the future. After you install Chocolatey, in a shell (Appendix A), do: This installs the most current Git (Install) X.Y.Z Chocolatey package. At the time of writing, that is “Git (Install) 2.33.1”, but that version number will increment over time. 6.2.1 Updating Git for WindowsIf you already have Git for Windows, but it’s not the latest version, it’s a good idea to update. You can update like so from the command line: 6.3 macOSOption 1 (highly recommended): Install the Xcode command line tools (not all of Xcode), which includes Git. Go to the shell and enter one of these commands to elicit an offer to install developer command line tools: Accept the offer! Click on “Install”. Here’s another way to request this installation, more directly: We just happen to find this Git-based trigger apropos. Note also that, after upgrading macOS, you might need to re-do the above and/or re-agree to the Xcode license agreement. We have seen this cause the RStudio Git pane to disappear on a system where it was previously working. Use commands like those above to tickle Xcode into prompting you for what it needs, then restart RStudio. Option 2 (recommended): Install Git from here: http://git-scm.com/downloads.
Option 3 (recommended): If you anticipate getting heavily into scientific computing, you’re going to be installing and updating lots of software. You should check out Homebrew, “the missing package manager for OS X”. Among many other things, it can install Git for you. Once you have Homebrew installed, do this in the shell:
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |