-
Notifications
You must be signed in to change notification settings - Fork 38
Visualizing new version of IDEAFilter #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devel
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -11,7 +11,7 @@ | |||||
#' | ||||||
#' @import shiny | ||||||
#' @importFrom shinyjs useShinyjs hidden | ||||||
#' @importFrom IDEAFilter shiny_data_filter_ui | ||||||
#' @importFrom IDEAFilter shiny_data_filter_ui IDEAFilter_ui | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is
Suggested change
|
||||||
#' @importFrom shinyWidgets materialSwitch | ||||||
#' @importFrom timevis timevisOutput | ||||||
#' @importFrom plotly plotlyOutput | ||||||
|
@@ -46,7 +46,7 @@ mod_indvExp_ui <- function(id){ | |||||
), | ||||||
conditionalPanel(condition = "input.filter_df != null", ns = ns, | ||||||
div(id = "indv_cic_data_filter", | ||||||
IDEAFilter::shiny_data_filter_ui(ns("data_filter")) | ||||||
IDEAFilter::IDEAFilter_ui(ns("data_filter")) | ||||||
) | ||||||
) | ||||||
), | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -7,7 +7,7 @@ | |||||
#' | ||||||
#' @import shiny | ||||||
#' @import dplyr | ||||||
#' @importFrom IDEAFilter shiny_data_filter | ||||||
#' @importFrom IDEAFilter shiny_data_filter IDEAFilter | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is
Suggested change
|
||||||
#' @importFrom haven zap_label zap_formats | ||||||
#' @importFrom purrr map walk2 | ||||||
#' @importFrom plotly renderPlotly ggplotly layout | ||||||
|
@@ -186,8 +186,8 @@ mod_popExp_server <- function(input, output, session, datafile) { | |||||
}) | ||||||
|
||||||
# Call IDEAFilter Module | ||||||
filters <- callModule( | ||||||
IDEAFilter::shiny_data_filter, | ||||||
filters <- IDEAFilter::IDEAFilter( | ||||||
# IDEAFilter::shiny_data_filter, | ||||||
"data_filter", # whatever you named the widget | ||||||
data = reactive(feed_filter()[filter_cols()]), # the name of your pre-processed data | ||||||
verbose = FALSE) | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -10,7 +10,7 @@ | |||||
#' | ||||||
#' @import shiny | ||||||
#' @importFrom plotly plotlyOutput | ||||||
#' @importFrom IDEAFilter shiny_data_filter_ui | ||||||
#' @importFrom IDEAFilter shiny_data_filter_ui IDEAFilter_ui | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is
Suggested change
|
||||||
#' | ||||||
#' @family popExp Functions | ||||||
#' @noRd | ||||||
|
@@ -46,7 +46,7 @@ mod_popExp_ui <- function(id, label = "Population Explorer"){ | |||||
, value = FALSE)), | ||||||
div(id = "pop_cic_filter_df", selectInput(ns("filter_df"),"Filter on Variable(s) in a loaded ADaM", | ||||||
multiple = TRUE, choices = "ADSL", selected = "ADSL") ), | ||||||
div(id = "pop_cic_data_filter", IDEAFilter::shiny_data_filter_ui(ns("data_filter")))) | ||||||
div(id = "pop_cic_data_filter", IDEAFilter::IDEAFilter_ui(ns("data_filter")))) | ||||||
), | ||||||
|
||||||
div(id = "pop_cic_chart_type", | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -4,7 +4,7 @@ | |||||
#' @param datafile all uploaded data files from the dataImport module | ||||||
#' @param filePaths NULL | ||||||
#' | ||||||
#' @importFrom IDEAFilter shiny_data_filter | ||||||
#' @importFrom IDEAFilter shiny_data_filter IDEAFilter | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is
Suggested change
|
||||||
#' @importFrom rlang sym | ||||||
#' @importFrom rlang !! | ||||||
#' @importFrom rlang call2 | ||||||
|
@@ -180,7 +180,7 @@ mod_tableGen_server <- function(input, output, session, datafile = reactive(NULL | |||||
}) | ||||||
|
||||||
# create a reactive for the data with filters applied | ||||||
filtered_data <- callModule(IDEAFilter::shiny_data_filter, "data_filter", data = processed_data, verbose = FALSE) | ||||||
filtered_data <- IDEAFilter::IDEAFilter("data_filter", data = processed_data, verbose = FALSE) | ||||||
|
||||||
# apply filters from selected dfs to tg data to create all data | ||||||
all_data <- reactive({suppressMessages(bds_data() %>% semi_join(filtered_data()))}) | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -11,7 +11,7 @@ | |||||
#' | ||||||
#' | ||||||
#' @import shiny | ||||||
#' @importFrom IDEAFilter shiny_data_filter_ui | ||||||
#' @importFrom IDEAFilter shiny_data_filter_ui IDEAFilter_ui | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is
Suggested change
|
||||||
#' @importFrom tippy tippy | ||||||
#' @importFrom gt gt_output | ||||||
#' | ||||||
|
@@ -49,7 +49,7 @@ mod_tableGen_ui <- function(id){ | |||||
tags$div(id = 'demo', class="collapse", | ||||||
selectInput(ns("filter_df"),"Filter on Variable(s) in a loaded ADaM", | ||||||
multiple = TRUE, choices = NULL, selected = NULL), | ||||||
IDEAFilter::shiny_data_filter_ui(ns("data_filter")) | ||||||
IDEAFilter::IDEAFilter_ui(ns("data_filter")) | ||||||
))))), | ||||||
wellPanel( | ||||||
fluidRow( | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is
shiny_data_filter
still required?