View source: R/basic_table_args.R
resolve_basic_table_args | R Documentation |
basic_table_args
objects
Resolving and reducing multiple basic_table_args
objects.
This function is intended to utilize user provided settings, defaults provided by the module creator and
also teal
option. See Details
, below, to understand the logic.
resolve_basic_table_args(
user_table = basic_table_args(),
user_default = basic_table_args(),
module_table = basic_table_args(),
app_default = getOption("teal.basic_table_args", basic_table_args())
)
user_table |
( |
user_default |
( |
module_table |
( |
app_default |
( |
The function picks the first non NULL
value for each argument, checking in the following order:
basic_table_args
argument provided by the end user.
Per table (user_table
) and then default (user_default
) setup.
app_default
global R variable, teal.basic_table_args
.
module_table
which is a module creator setup.
basic_table_args
object.
parse_basic_table_args()
to parse resolved list into list of calls.
resolve_basic_table_args(
user_table = basic_table_args(title = "TITLE"),
user_default = basic_table_args(title = "DEFAULT_TITLE", subtitles = "SUBTITLE")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.