Learn R Programming

formods (version 0.2.1)

FM_fetch_deps: Fetches Dependency Information

Description

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

session

Shiny session variable

Examples

Run this code
# 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)

Run the code above in your browser using DataLab