getModuleVersion: Find the latest module version from a SpaDES module...

Description Usage Arguments Details Author(s) See Also

Description

Modified from https://stackoverflow.com/a/25485782/1380598.

Usage

1
2
3
4
5
6
7
getModuleVersion(name, repo)

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

## S4 method for signature 'character,missing'
getModuleVersion(name)

Arguments

name

Character string giving the module name.

repo

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.

Details

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.

1
2
3
4
     See the modules vignette for details of module directory structure
     (\url{https://spades-core.predictiveecology.org/articles/ii-modules.html#module-directory-structure-modulename}),
     and see our SpaDES-modules repo for details of module repository structure
     (\url{https://github.com/PredictiveEcology/SpaDES-modules}).

Author(s)

Alex Chubaty

See Also

zipModule for creating module ‘.zip’ folders.


SpaDES.core documentation built on Sept. 30, 2021, 5:10 p.m.