A Installation Guide
A.1 Windows
A.1.1 Bash terminal
Windows does not have a bash terminal installed by default. Follow instructions here to install one.
Installing Snakemake
Inside your terminal window enter the following command and press Return
you may need to replace pip3
with pip
If you get an installation error here, the the following commands sequentially:
If you are still having issues:
- If you are completing this tutorial as part of a live workshop, raise your hand
- Else, create an issue here, and tell us what the error message is + what operating system you are running on. We will try and resolve it.
Installing R
We provide instructions on how to install R here
Installing the Required R
libraries
We utilize some additional R packages inside the scripts that build our project. To install either:
- If you have RStudio and are comfortable installing packages there.
- Open Rstudio
- Copy and paste the following lines into the R console:
- A command line alternative:
- Open your bash terminal and change directory to the folder called
snakemake-econ-r-learner
you downloaded in Chapter XX.
- Run type the following command into the terminal and press
Return
:
- Open your bash terminal and change directory to the folder called
A.2 Mac
A.2.1 Bash terminal
You have a bash style terminal installed by default. To open a terminal session:
- Open spotlight with cmd + space
- Type in ‘terminal’
- When the terminal appears, open it.
A.2.2 Python
Install Anaconda Python:
We provide instructions on how to install anaconda python here
Installing Snakemake
Inside your terminal window enter the following command and press Return
you may need to replace pip3
with pip
Installing R
We provide instructions on how to install R here
Installing the Required R
libraries
We utilize some additional R packages inside the scripts that build our project. To install either:
- If you have RStudio and are comfortable installing packages there.
- Open Rstudio
- Copy and paste the following lines into the R console:
- A command line alternative:
- Open your terminal and change directory to the folder called
snakemake-econ-r-learner
you downloaded in Chapter XX.
- Run type the following command into the terminal and press
Return
:
- Open your terminal and change directory to the folder called
A.3 Linux / Ubuntu
A.3.1 Bash terminal
You have a bash style terminal installed by default.
Instructions to open a terminal vary across Linux flavours.
On Ubuntu style flavours, Ctrl
+ Alt
+ T
will work.
A.3.2 Python
Install Python using the deadsnakes ppa (Ubuntu Specific):
- Here’s how to add the deadsnakes ppa and install Python 3.8
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt-get update
$ sudo apt-get install python3.8
Installing R
We provide instructions on how to install R here
Installing the Required R
libraries
We utilize some additional R packages inside the scripts that build our project. To install either:
- If you have RStudio and are comfortable installing packages there.
- Open Rstudio
- Copy and paste the following lines into the R console:
- A command line alternative:
- Open your bash terminal and change directory to the folder called
snakemake-econ-r-learner
you downloaded in Chapter XX.
- Run type the following command into the terminal and press
Return
:
- Open your bash terminal and change directory to the folder called