A module that displays datasets as listings
listings_UI.Rd
This module displays a given dataset as listing. It allows switching between datasets if it receives more than one.
Usage
listings_UI(module_id)
listings_server(
module_id,
dataset_list,
default_vars = NULL,
dataset_metadata,
pagination = NULL,
intended_use_label = NULL,
subjid_var = "USUBJID",
receiver_id = NULL,
afmm_param = NULL
)
Arguments
- module_id
Shiny id
- dataset_list
[shiny::reactive(list(data.frame)]
A reactive list of data.framish dataset(s) that will be shown as listing.
- default_vars
[list(characters(1+)) | NULL]
A list of character vectors which contain the variable names to be displayed as default per dataset. Named according to the
dataset_names
. IfNULL
, the first six variables are displayed for each dataset.- dataset_metadata
[list(character(1), character(1+))]
A list with the following two elements:dataset_metadata$name()
containing a reactive string specifying the name of the selected dataset anddataset_metadata$date_range()
containing a reactive character vector with two entries specifying the earliest and latest modification date in the dataset. Usually obtained from module manager.- pagination
[logical(1) | NULL]
Either a boolean indicating if pagination should be activated, or NULL for which pagination will be activated for large datasets (nrows > 1000) automatically.- intended_use_label
[character(1) | NULL]
Either a string indicating the intended use for export, or NULL. The provided label will be displayed prior to the download and will also be included in the exported file.- subjid_var
[character(1) | NULL]
Column corresponding to subject ID. Default value is 'USUBJID'
- receiver_id
[character(1) | NULL]
Character string defining the ID of the module to which to send a subject ID. The module must exist in the module list. The default is NULL which disables communication.
- afmm_param
[list(2+) | NULL]
Named list of a selection of arguments from module manager. Expects at least two elements:
utils
andmodule_names
defining a character vector whose entries have the corresponding module IDs as names.
See also
Other data_listings:
mod_listings()