Get module or simulation package dependencies

packages(sim, modules, paths, filenames, envir, ...)

# S4 method for ANY
packages(sim, modules, paths, filenames, envir, ...)

## Arguments

sim A simList object. Character vector, specifying the name or vector of names of module(s) Character vector, specifying the name or vector of names of paths(s) for those modules. If path not specified, it will be taken from getOption("spades.modulePath"), which is set with setPaths) Character vector specifying filenames of modules (i.e. combined path & module. If this is specified, then modules and path are ignored. Optional environment in which to store parsed code. This may be useful if the same file is being parsed multiple times. This function will check in that envir for the parsed file before parsing again. If the envir is transient, then this will have no effect. All simInit parameters.

## Value

A sorted character vector of package names.

Other functions to access elements of a simList object: .addDepends, doEvent.checkpoint, envir, events, globals, inputs, ls.simList, ls.str.simList, modules, objs, params, paths, progressInterval, times