The mapping tool branch comes with the following submodules:
* pathogenflows R package (https://git.wur.nl/glowpa/pathogenflows.git forked from https://github.com/mverbyla/pathogenflows)
...
...
@@ -44,7 +27,27 @@ git submodule update
```
The git repository of the submodule is now cloned in the submodule directory. Now open the GloWPa.Rproj file R studio.
Install the Pathogenflows library from the source code: `install.packages('./libs/pathogenflows', repos = NULL, type = 'source')`
We use `renv` to install the project dependencies. The required packages to run the model will be downloaded and installed from CRAN. The only exception is the pathogenflows package which will be installed from the ./libs/pathogenflows path. Make sure you have followed the previous instructions regarding the git submodules. The renv lockfile does not contain dependencies to run the plumber API.
```R
renv::restore()
```
Note that the raster package is deprecated since October 2023, but can be installed in R 4.3.3 on Windows systems.
In case you want to install the required packages without using renv. First install the following required packages from CRAN: