Installation - rileywheadon/ffa-framework GitHub Wiki
The FFA framework is currently available as a collection of scripts for the R
programming environment.
Therefore, installation and usage of the framework will require modellers to be familiar with the shell on their respective operating system.
Prerequisites
- Install Git from https://git-scm.com/downloads.
- Check that Git is installed by executing
git --version
in a shell. - Install R from https://www.r-project.org/. Version 4.5.0 is recommended.
- Check that R is installed by executing
R --version
in a shell. - Install the latest version of Pandoc from https://pandoc.org/.
- Check that Pandoc is installed by executing
pandoc --version
in a shell.
A Note for Windows Users
You may need to add Git, R and Pandoc to your path in order to run them from the command line. To do this, you will need to edit your system environment variables from the settings menu. The default paths for Git, R and Pandoc are:
C:\Program Files\Git\bin
C:\Program Files\R\R-4.5.0\bin
C:\Program Files\Pandoc
Installing the FFA Framework
- Open a shell and navigate to the directory where you would like to install the framework.
- Clone the FFA framework Github repository:
git clone https://github.com/rileywheadon/ffa-framework.git
- Navigate to the
source
directory. This directory contains arenv.lock
file. - Open a command prompt with
R
. Therenv
package should install automatically. - Load libraries from the
renv.lock
file:
> renv::restore()
- Exit the command prompt with
q()
. The installation is complete.
This guide has been tested on Linux, Windows, and MacOS.
Please submit a Github Issue if you have any problems.