SpaDES in actionThe demo modules in the SpaDES package
Simple forest dynamics model (with caribou) (LCC2005)
SpaDES-Landis Biomass Succession
Wolf IBM (wolfAlps)
A shiny app on shinyapps.io (e.g., Proof of concept)
SpaDES packageThe demo modules are simple, proof of concept modules.
There are 3 different types of modules:
How to find them:
# Locate SpaDES on your computer; they are in the sampleModule folder
whereSpaDES <- find.package(package = "SpaDES")
whereSamples <- system.file('sampleModules', package = 'SpaDES')
file.path(whereSamples, 'caribouMovement', 'caribouMovement.R') %>%
file.edit()
SpaDES demoDuring simulation, it shows:
SpaDES modules; makes them easy to distribute to others# specify where to save files
moduleDir <- file.path(tempdir(), 'SpaDES_modules')
# download all necessary modules
downloadModule('LCC2005', path = moduleDir, data = TRUE)
# look at module or helper .Rmd file
openModules('LCC2005', path = moduleDir)
Allows scientist easier access to code, e.g.,
Not yet published
Features:
Can be easily published online, once public:
(top right)
This is not publically available yet…
shiny::runApp("~/GitHub/LandwebApp/")
Features:
downloadModule("wolfAlps", path = moduleDir, data = TRUE)
.Rmd file shows how to run it:openModules("wolfAlps", path = moduleDir)
https://spades.shinyapps.io/ForestChange_ProofOfConcept/
- Uses the `shiny` package to create dynamic web page
- hosted on [shinyapps.io](http://www.shinyapps.io/) because it's very easy to do so (click on "Publish" button in RStudio):
 (top right)
- Allows user to change parameters
- Shows some ideas about modularity (click modules on and off), only partially implemented
SpaDESDuring this workshop we will learn how to:
SpaDES modules;SpaDES;Thinking the SpaDES way (slides)