For a given state and session this function will determine the
module ids that are dependent as well as any packages the module elements
might depend on.
Usage
FM_fetch_deps(state, session)
Value
list with the following elements:
mod_ids Dependent module ids.
packages List of package dependencies.
package_code Library commands to load packages.
Arguments
state
Current module state after yaml file has been read
# We need a Shiny session object to use this function:sess_res = UD_test_mksession()
session = sess_res$session
state = sess_res$state
mod_deps = FM_fetch_deps(state, session)