In this class you will need to run commands from the Bash shell. Windows does not automatically include this (instead it has the Command Prompt). To maintain as much consistency across operating systems as possible, you need to install both the shell interface and Git. To do this, follow these instructions or watch the video tutorial:
cmd
and press [Enter])setx HOME "%USERPROFILE%"
SUCCESS: Specified value was saved.
exit
then pressing [Enter]This will provide you with both Git and Bash in the Git Bash program.
If you follow these instructions and install RStudio version 1.1 or higher, you can use the shell (also called the terminal) directly from within RStudio. See this article for more information on how to use it and setup RStudio to use Git Bash, rather than the Command Prompt.
Mac OS X already includes the shell, so all you need to do is install Git. You can obtain and install it from here.
If Git is not already available on your machine you can try to install it via your distro’s package manager.
Debian/Ubuntu
sudo apt-get install git
Fedora/Redhat Linux
sudo yum install git
This page is derived in part from “UBC STAT 545A and 547M”, licensed under the CC BY-NC 3.0 Creative Commons License.
This page is derived in part from “Version Control with Git”, licensed under the CC BY 4.0 Creative Commons License.
This work is licensed under the CC BY-NC 4.0 Creative Commons License.