getModuleVersion(name, repo)

# S4 method for character,character
getModuleVersion(name, repo)

# S4 method for character,missing



Character string giving the module name.


GitHub repository name, specified as "username/repo". Default is "PredictiveEcology/SpaDES-modules", which is specified by the global option spades.moduleRepo. Only master branches can be used at this point.


getModuleVersion extracts a module's most recent version by looking at the module .zip files contained in the module directory. It takes the most recent version, based on the name of the zip file.

See the modules vignette for details of module directory structure (, and see our SpaDES-modules repo for details of module repository structure (

See also

zipModule for creating module .zip folders.