Learn R Programming

SpaDES (version 1.2.0)

.depsLoadOrder: Determine module load order

Description

Internal function. Checks module dependencies and attempts to ensure that cyclic dependencies can be resolved, checking objects in the global environment, and finally, attempts to determine the load order for modules in the simulation.

Usage

.depsLoadOrder(sim, simGraph)
".depsLoadOrder"(sim, simGraph)

Arguments

sim
A simList object.
simGraph
An igraph object produced by depsGraph.

Value

Character vector of module names, sorted in correct load order.

Details

Uses topo_sort to try to find a load order satisfying all module object dependencies.