Skip to content

Commit

Permalink
updating document
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikeyakirar committed Dec 20, 2023
1 parent ba65965 commit a82091e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions R/tm_data_table.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#' Data Table Viewer Teal Module
#'
#' A data table viewer shows the data using a paginated table.
#' specifically designed for use with `data.frames`.
#' @md
#'
#' @inheritParams teal::module
Expand All @@ -12,6 +13,8 @@
#' @param datasets_selected (`character`) A vector of datasets which should be
#' shown and in what order. Names in the vector have to correspond with datasets names.
#' If vector of length zero (default) then all datasets are shown.
#' Note: Only datasets of the `data.frame` class are compatible;
#' using other types will cause an error.
#' @param dt_args (named `list`) Additional arguments to be passed to `DT::datatable`
#' (must not include `data` or `options`).
#' @param dt_options (named `list`) The `options` argument to `DT::datatable`. By default
Expand Down
1 change: 1 addition & 0 deletions R/tm_missing_data.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#' Missing data module
#'
#' Present analysis of missing observations and patients.
#' specifically designed for use with `data.frames`.
#'
#' @inheritParams teal::module
#' @inheritParams shared_params
Expand Down
5 changes: 4 additions & 1 deletion R/tm_variable_browser.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#'
#' The variable browser provides a table with variable names and labels and a
#' plot that visualizes the content of a particular variable.
#' specifically designed for use with `data.frames`.
#'
#' @details Numeric columns with fewer than 30 distinct values can be treated as either factors
#' or numbers with a checkbox allowing users to switch how they are treated (if < 6 unique values
Expand All @@ -17,6 +18,7 @@
#' @param datasets_selected (`character`) A vector of datasets which should be
#' shown and in what order. Names in the vector have to correspond with datasets names.
#' If vector of length zero (default) then all datasets are shown.
#' Note: Only datasets of the `data.frame` class are compatible; using other types will cause an error.
#'
#' @aliases
#' tm_variable_browser_ui,
Expand Down Expand Up @@ -191,7 +193,8 @@ srv_variable_browser <- function(id,

checkmate::assert_character(datasets_selected)
checkmate::assert_subset(datasets_selected, datanames)
if (length(datasets_selected) != 0L) {
if (!identical(datasets_selected, character(0))) {
checkmate::assert_subset(datasets_selected, datanames)
datanames <- datasets_selected
}

Expand Down
5 changes: 4 additions & 1 deletion man/tm_data_table.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/tm_missing_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/tm_variable_browser.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a82091e

Please sign in to comment.