These accessors extract the metadata for a module (if specified) or all modules
in a simList
if not specified.
inputObjects(sim, module, path) # S4 method for simList inputObjects(sim, module, path) # S4 method for missing inputObjects(sim, module, path) outputObjects(sim, module, path) # S4 method for simList outputObjects(sim, module, path) # S4 method for missing outputObjects(sim, module, path) outputObjectNames(sim, module) # S4 method for simList outputObjectNames(sim, module) reqdPkgs(sim, module, modulePath) # S4 method for simList reqdPkgs(sim, module, modulePath) # S4 method for missing reqdPkgs(sim, module, modulePath) documentation(sim, module) # S4 method for simList documentation(sim, module) citation(package, lib.loc = NULL, auto = NULL, module = character()) # S4 method for simList citation(package, lib.loc = NULL, auto = NULL, module = character()) # S4 method for character citation(package, lib.loc = NULL, auto = NULL, module = character())
sim | A |
---|---|
module | Character vector of module name(s) |
path | The path to the module., i.e., the |
modulePath | That path where |
package | For compatibility with |
lib.loc | a character vector with path names of R libraries, or
the directory containing the source for |
auto | a logical indicating whether the default citation
auto-generated from the package |
if (FALSE) { # To pre-install and pre-load all packages prior to \code{simInit}. # set modulePath setPaths(modulePath = system.file("sampleModules", package = "SpaDES.core")) # use Require and reqdPkgs if (!interactive()) chooseCRANmirror(ind = 1) # pkgs <- reqdPkgs(module = c("caribouMovement", "randomLandscapes", "fireSpread")) pkgs <- unique(unlist(pkgs)) Require(pkgs) }