Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/tm_file_viewer.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#' folder = system.file("sample_files", package = "teal.modules.general"),
#' png = system.file("sample_files/sample_file.png", package = "teal.modules.general"),
#' txt = system.file("sample_files/sample_file.txt", package = "teal.modules.general"),
#' url = "https://fda.gov/files/drugs/published/Portable-Document-Format-Specifications.pdf"
#' url = "https://www.fda.gov/files/drugs/published/Portable-Document-Format-Specifications.pdf"
#' )
#' )
#' )
Expand Down
16 changes: 7 additions & 9 deletions R/tm_g_association.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@
#' data <- within(data, {
#' require(nestcolor)
#' CO2 <- CO2
#' factors <- names(Filter(isTRUE, vapply(CO2, is.factor, logical(1L))))
#' CO2[factors] <- lapply(CO2[factors], as.character)
#' })
#'
#' app <- init(
Expand All @@ -72,17 +70,17 @@
#' dataname = "CO2",
#' select = select_spec(
#' label = "Select variable:",
#' choices = variable_choices(data[["CO2"]], c("Plant", "Type", "Treatment")),
#' selected = "Plant",
#' choices = variable_choices(data[["CO2"]], c("conc", "uptake")),
#' selected = "conc",
#' fixed = FALSE
#' )
#' ),
#' vars = data_extract_spec(
#' dataname = "CO2",
#' select = select_spec(
#' label = "Select variables:",
#' choices = variable_choices(data[["CO2"]], c("Plant", "Type", "Treatment")),
#' selected = "Treatment",
#' choices = variable_choices(data[["CO2"]], c("Plant", "Type", "Treatment", "conc", "uptake")),
#' selected = "uptake",
#' multiple = TRUE,
#' fixed = FALSE
#' )
Expand Down Expand Up @@ -117,9 +115,9 @@
#' label = "Select variable:",
#' choices = variable_choices(
#' data[["ADSL"]],
#' c("SEX", "RACE", "COUNTRY", "ARM", "STRATA1", "STRATA2", "ITTFL", "BMRKR2")
#' c("AGE", "BMRKR1", "LDDTHELD")
#' ),
#' selected = "RACE",
#' selected = "AGE",
#' fixed = FALSE
#' )
#' ),
Expand All @@ -129,7 +127,7 @@
#' label = "Select variables:",
#' choices = variable_choices(
#' data[["ADSL"]],
#' c("SEX", "RACE", "COUNTRY", "ARM", "STRATA1", "STRATA2", "ITTFL", "BMRKR2")
#' c("SEX", "RACE", "COUNTRY", "ARM", "STRATA1", "STRATA2", "ITTFL", "BMRKR2", "AGE", "BMRKR1", "LDDTHELD")
#' ),
#' selected = "BMRKR2",
#' multiple = TRUE,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_variable_browser.R
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ get_plotted_data <- function(input, plot_var, data) {
teal.reporter::teal_card(obj),
teal.reporter::teal_card("## Module's output(s)")
)
teal.code::eval_code(obj, "library(ggplot2)") |>
teal.code::eval_code(obj, "library(ggplot2)\nlibrary(dplyr)") |>
within(
{
ANL <- dplyr::select(dataset_name, varname)
Expand Down
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ variable_type_icons <- function(var_type) {
))
}

#' JavaScript expression to check if a tab is active
#'
#' @param id (`character(1)`) the id of the tab panel with tabs.
#' @param name (`character(1)`) the name of the tab.
Expand Down
21 changes: 21 additions & 0 deletions man/is_tab_active_js.Rd

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

6 changes: 3 additions & 3 deletions man/tm_file_viewer.Rd

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

24 changes: 11 additions & 13 deletions man/tm_g_association.Rd

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

Loading