The demo modules in the
SpaDES
packageSimple forest dynamics model (with caribou) (LCC2005)
SpaDES-Landis Biomass Succession
Wolf IBM (wolfAlps)
A shiny app on shinyapps.io (e.g., Proof of concept)
December 7, 2016
The 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)
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/
Features:
shiny
package to create dynamic web pagehosted on shinyapps.io because it's very easy to do so (click on "Publish" button in RStudio):
(top right)
Shows some ideas about modularity (click modules on and off), only partially implemented
SpaDES
During this workshop we will learn how to:
SpaDES
modules;SpaDES
;SpaDES
package):?SpaDES
Thinking the SpaDES
way (slides)