“…Similarly,Wilensky and Rand's (2015) textbook offers an accessible and comprehensive reference for using the NetLogo modeling software to develop agent-based models.7 We recommend using the RStudio IDE when programming models in R. RStudio can be freely downloaded from https://www.rstudio.com/products/rstudio/download and runs on all major operating systems.8 The present paper focuses on building models using only the functionality provided in base R. However, packages are emerging within the R ecosystem that attempt to provide more direct capabilities for developing computational models and running simulations. For example, the simecol(Petzoldt & Rinke, 2007) and villager(Thelen et al, 2022) packages offer architectures and helper functions for writing and simulating system dynamics and agent-based models, respectively, within R. Alternatively, the RNetLogo package(Thiele, 2014) provides an interface for operating, executing, and communicating with models programmed in NetLogo through R that allows one to use the programming language/philosophy of the former and the analytic tools/capabilities of the latter from the same software application.9 The hashtag (#) symbols surrounding the headings for each of the five sections shown in Figure1are used in the R programming language to indicate code that should be ignored by the computer. More precisely,…”