getConfigMode: Extracts Configuration Mode from Context

Description Usage Arguments Value See Also Examples

View source: R/config.R

Description

Extracts from second level in xt_lst, if it contains only valid modes. If any level 2 (only!) field (e.g. validate) is a list of mode fields, getConfigMode() will be used to extract only that mode.

Usage

1
getConfigMode(.context, mode = .context$mode)

Arguments

.context

List. The shinyXT context

mode

The name of the config mode belonging to the context

Value

A list representing the settings of a specific context mode

See Also

Other config functions: checkDataConfig, getConfigField

Examples

1
2
3
4
5
6
context_default <- list(
                   tbl_name = "onetable",
                   mode = NULL,
                   xt_lst = list(
                   onetable = list(.XT =  list())))
getConfigMode(.context = context_default, mode = .context$mode)

numeract/shinyXT documentation built on May 30, 2019, 5 a.m.