Annex

14.2 Packages

The following packages are required to run this gitbook:

# OPTAIN/SWAT
require(SWATprepR)
require(SWATfarmR)
require(SWATdoctR)
require(euptf2) # devtools::install_github("tkdweber/euptf2") 
require(svatools) # devtools::install_github("biopsichas/svatools")
require(miljotools) # remotes::install_github(repo = "moritzshore/miljotools", ref = remotes::github_release())


# Data
require(tidyverse)
require(dplyr)
require(stringr)
require(purrr)
require(DT)
require(lubridate)
require(reshape2)
require(data.table)
require(readxl)
require(tidyr)
require(readr)

# Spatial
require(mapview)
require(sf)
require(tmap)
require(terra)
require(raster)
require(rcartocolor)
require(stars)

# Hydro
require(hydroGOF)
require(whitebox)

# Plotting
require(ggplot2)
require(gifski)
require(plotly) 
require(wesanderson)
require(ggrepel)
require(rayshader)
require(rgl)

# Other
library(reticulate)
require(remotes)
require(usethis)
require(progressx)
require(rmarkdown)
require(bookdown)

The workflow was last successfully run on:

Sys.Date()
## [1] "2024-03-19"

With the following package VERSIONS. (if some package breaks in the workflow, try reverting to this version of the package.)

## [1] "SWATfarmR 3.2.0"
## [1] "euptf2 1.0.0"
## [1] "svatools 0.1.0"
## [1] "SWATdoctR 0.1.23"
## [1] "SWATprepR 1.0.4"
## [1] "miljotools 0.3.2"
## [1] "tidyverse 2.0.0"
## [1] "dplyr 1.1.4"
## [1] "stringr 1.5.1"
## [1] "purrr 1.0.2"
## [1] "DT 0.32"
## [1] "lubridate 1.9.3"
## [1] "reshape2 1.4.4"
## [1] "data.table 1.15.2"
## [1] "readxl 1.4.3"
## [1] "tidyr 1.3.1"
## [1] "readr 2.1.5"
## [1] "mapview 2.11.2"
## [1] "sf 1.0.15"
## [1] "tmap 3.3.4"
## [1] "terra 1.7.71"
## [1] "raster 3.6.26"
## [1] "rcartocolor 2.1.1"
## [1] "stars 0.6.4"
## [1] "hydroGOF 0.5.4"
## [1] "whitebox 2.3.4"
## [1] "ggplot2 3.4.4"
## [1] "gifski 1.12.0.2"
## [1] "plotly 4.10.4"
## [1] "wesanderson 0.3.7"
## [1] "ggrepel 0.9.5"
## [1] "rayshader 0.37.3"
## [1] "rgl 1.3.1"
## [1] "reticulate 1.35.0"
## [1] "remotes 2.4.2.1"
## [1] "usethis 2.2.3"
## [1] "processx 3.8.4"
## [1] "rmarkdown 2.26"
## [1] "bookdown 0.38"

14.3 Computer Specs

The workflow has reached a point where many of the chapters are too computationally expensive to be reasonably run on a normal laptop. The chapters that are especially resource demanding are Input data preparation with whitebox tools. The DEM processing takes up a of memory, but not much CPU. Our machine is NIBIO’s cpu42 with 96GB of RAM (Overkill for DEM processing, but enough).

The other demanding chapter is Scenario Running. This chapter is predominantly CPU intensive, and our setup is running with 30 cores / threads. Some stages take at least 20 GB of RAM as well.