Dataset and Variable Picker and Merge Module for 'teal' Applications

Allows users to interactively select datasets, variables, and values within 'teal' applications using a 'tidyselect'-style interface. Selected picks can be merged and transformed into analysis-ready data within 'teal' modules.


teal.picks

CRAN Version Total Downloads Last Month Downloads Last Week Downloads

Check 🛠 Docs 📚 Code Coverage 📔

GitHub forks GitHub repo stars

GitHub commit activity GitHub contributors GitHub last commit GitHub pull requests GitHub repo size GitHub language count Project Status: Active – The project has reached a stable, usable state and is being actively developed. Current Version Open Issues

teal.picks is an R package used in the development of teal applications. It provides:

  • a hierarchical choices / selected model for datasets, variables, and values in a Shiny session, with optional tidyselect support for dynamic choices,
  • picks_ui and picks_srv modules to collect those selections interactively,
  • merge_srv and tm_merge to merge teal data according to user picks,
  • conversion helpers such as as.picks to align with teal.transform objects.

Installation

install.packages('teal.picks')

Alternatively, you might want to use the development version.

# install.packages("pak")
pak::pak("insightsengineering/teal.picks")

Usage

See the package reference for full documentation.

Below is a minimal illustration of defining a picks specification (datasets, then variables; optional values() when needed):

library(teal.picks)

my_picks <- picks(
  datasets(choices = c("iris", "mtcars")),
  variables(
    choices = tidyselect::everything(),
    selected = 1L,
    multiple = TRUE
  )
)

Wire my_picks into picks_ui / picks_srv with a reactive teal_data object, or use tm_merge inside a teal::init() application. Full patterns are documented on the package site.

Getting help

If you encounter a bug or have a feature request, please file an issue. For questions, discussions, and staying up to date, please use the teal channel in the pharmaverse slack workspace.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("teal.picks")

0.3.1 by Dony Unardi, a month ago


https://github.com/insightsengineering/teal.picks/, https://insightsengineering.github.io/teal.picks/


Report a bug at https://github.com/insightsengineering/teal.picks/issues


Browse source code at https://github.com/cran/teal.picks


Authors: Dawid Kaledkowski [aut] (ORCID: , Andre Verissimo [aut] , Marcin Kosinski [aut] , Lluís Revilla Sancho [aut] (ORCID: , Oriol Senan [aut] , Dony Unardi [rev, cre] , F. Hoffmann-La Roche AG [cph, fnd]


Documentation:   PDF Manual  


Apache License 2.0 license


Imports bsicons, checkmate, dplyr, htmltools, logger, methods, rlang, shiny, shinyWidgets, teal, teal.code, teal.data, teal.logger, tidyselect, yaml

Suggests jsonlite, knitr, rmarkdown, rvest, shinytest2, teal.transform, testthat, tibble, withr


Depended on by teal.modules.clinical, teal.modules.general.


See at CRAN