The Community Water Model (CWatM) allows the assessment of water supply and human and environmental water demands at both global and regional levels. The model was developed by the Water Research Group in the International Institute for Applied System Analysis (IIASA).
cwatm4r provides an interface to set up and run hydrological simulations using CWatM. It also has data preparation and post-processing capacities.
Install cwatm4r from GitHub using the devtools package
install.packages("devtools")
devtools::install_github(repo = "dof1985/cwatm4r", build_vignettes = TRUE)
Load cwatm4r and follow the Getting Started with cwatm4r vignette
library(cwatm4r)
browseVignettes(package = "cwatm4r")