R/teal.modules.general.R

#' `teal.modules.general`: General modules to add to a `teal` application
#'
#' The modules in this package are generic modules that should work with any data set
#' (not necessarily for clinical trials data).
#'
#' @import ggplot2
#' @import ggmosaic
#' @import shiny
#' @import teal
#' @import teal.transform
#' @importFrom dplyr %>%
#'
#'
#' @name teal.modules.general
#' @keywords internal
"_PACKAGE"

# nolint start
# Note ggmosaic (version <= 0.3.3) needs to be in DEPENDS as the following does not work if it is imported
# df <- data.frame(x = c("A", "B", "C", "A"), y = c("Z", "Z", "W", "W"))
# ggplot(df) + ggmosaic::geom_mosaic(aes(x = ggmosaic::product(x), fill = y))
# nolint end

# Needed to avoid R CMD note on no visible binding
utils::globalVariables("count")

Try the teal.modules.general package in your browser

Any scripts or data that you put into this service are public.

teal.modules.general documentation built on April 4, 2025, 2:26 a.m.