Package: shinyCohortBuilder 1.0.0

Krystian Igras

shinyCohortBuilder: Modular Cohort-Building Framework for Analytical Dashboards

You can easily add advanced cohort-building component to your analytical dashboard or simple 'Shiny' app. Then you can instantly start building cohorts using multiple filters of different types, filtering datasets, and filtering steps. Filters can be complex and data-specific, and together with multiple filtering steps you can use complex filtering rules. The cohort-building sidebar panel allows you to easily work with filters, add and remove filtering steps. It helps you with handling missing values during filtering, and provides instant filtering feedback with filter feedback plots. The GUI panel is not only compatible with native shiny bookmarking, but also provides reproducible R code.

Authors:Krystian Igras [cre, aut], Kamil Wais [aut], Adam Foryś [ctb]

shinyCohortBuilder_1.0.0.tar.gz
shinyCohortBuilder_1.0.0.zip(r-4.7)shinyCohortBuilder_1.0.0.zip(r-4.6)shinyCohortBuilder_1.0.0.zip(r-4.5)
shinyCohortBuilder_1.0.0.tgz(r-4.6-any)shinyCohortBuilder_1.0.0.tgz(r-4.5-any)
shinyCohortBuilder_1.0.0.tar.gz(r-4.7-any)shinyCohortBuilder_1.0.0.tar.gz(r-4.6-any)
shinyCohortBuilder_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
shinyCohortBuilder/json (API)

# Install 'shinyCohortBuilder' in R:
install.packages('shinyCohortBuilder', repos = c('https://r-world-devs.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/r-world-devs/shinycohortbuilder/issues

Pkgdown/docs site:https://r-world-devs.github.io

On CRAN:

Conda:

7.32 score 10 stars 70 scripts 360 downloads 27 exports 66 dependencies

Last updated from:3f0e5e9e1a. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK149
source / vignettesOK207
linux-release-x86_64OK167
macos-release-arm64OK93
macos-oldrel-arm64OK94
windows-develOK96
windows-releaseOK116
windows-oldrelOK103
wasm-releaseOK161

Exports:.available_filters_choices.cb_input.custom_attrition.filter_position.gui_filter.keep_na_input.pre_post_stats.pre_post_stats_text.render_filter.render_filters.save_observer.sendOutput.step_attrition.trigger_action.trigger_action_js.update_data_stats.update_keep_na_inputcb_changedcb_chat_servercb_chat_uicb_servercb_uidemo_appguiscb_chart_palettescb_iconsscb_labels

Dependencies:base64encbslibcachemclicohortBuildercollapsecommonmarkcpp11digestdplyrevaluatefarverfastmapfontawesomeformatRfsgenericsggplot2gluegtablehighrhtmltoolshtmlwidgetshttpuvisobandjquerylibjsonliteknitrlabelinglaterlifecyclemagrittrmemoisemimeotelpillarpkgconfigpromisespurrrR6rappdirsRColorBrewerRcpprlangrmarkdownS7sassscalesshinyshinyGizmoshinyWidgetssourcetoolsstringistringrtibbletidyrtidyselecttinytextryCatchLogutf8vctrsviridisLitewithrxfunxtableyaml

Creating custom source extension

Last update: 2026-07-02
Started: 2022-05-22

Implementing custom GUI filter layer
GUI Filter Layer as a S3 Method | input | feedback | server | update | post_stats | multi_input

Last update: 2026-07-02
Started: 2022-05-22

Introduction to shinyCohortBuilder
shinyCohortBuilder vs. cohortBuilder | Cohort to Filtering Panel | Filter vs Filter Controller | Automatic filters configuration | cohortBuilder to GUI features | Multiple-steps filtering | Reproducible code | Saving and restoring Cohort state | Display attrition plot | Extra features | Run button | Bookmarking | Visibility of data statistics | Feedback plots

Last update: 2026-07-02
Started: 2022-05-22

shinyCohortBuilder options
cb_verbose | scb_verbose | scb_verbose_call_stack | scb_render_all | scb_labels | scb_icons | scb_chart_palette | scb_minified

Last update: 2026-07-02
Started: 2022-05-22

Updating Source in Shiny
Consistent data | Inconsistent data

Last update: 2022-06-02
Started: 2022-05-22

Readme and manuals

Help Manual

Help pageTopics
GUI layer for cohortBuilder packageshinyCohortBuilder-package
Create input controller insensitive to server updates.cb_input
Define filter related output in filtering panel.render_filter
Save observer to user session.save_observer
Send output rendering.sendOutput
Generate available filters choices based on the Source data.available_filters_choices .available_filters_choices.default .available_filters_choices.tblist available-filters-choices
Track changes of cohort data in Shinycb_changed
Cohort assistant chat modulecb_chat cb_chat_server cb_chat_ui
Include filtering panel in Shinycb_server cb_ui
Run demo applicationdemo_app
Create target filter position in UI panel.filter_position .filter_position.default .filter_position.tblist filter-position
Run filtering panel locallygui
Return GUI layer methods for filter of specified type.gui_filter gui-filter-layer
Generate NA's filter selection GUI input.keep_na_input .update_keep_na_input keep_na_input
Generate structure of pre/post statistics.pre_post_stats .pre_post_stats_text pre_post_stats
Method for generating custom attrition output.custom_attrition rendering-custom-attrition
Render filtering panels for all the filters included in Cohort.render_filters .render_filters.default .render_filters.tblist rendering-filters
Generate output of attrition plot.step_attrition .step_attrition.default .step_attrition.tblist rendering-step-attrition
Default color palette used for filter feedback plotsscb_chart_palette
Default filtering panel iconsscb_icons
Default filtering panel labelsscb_labels
Source compatibility methods.source-gui-layer
Trigger filtering panel action.trigger_action .trigger_action_js trigger-action
Render source data related statistics.update_data_stats .update_data_stats.default .update_data_stats.tblist updating-data-statistics