Skip to content

Shiny Best Practices

Joshua D. Campbell edited this page Apr 6, 2022 · 1 revision

These are the best practices and standards we adhere to when developing new features or new pages for tools in the Shiny UI.

General layout

  • Nav bar [TODO]
  • Tabs [TODO]
  • Blinder tabs for within-page workflows [TODO]
  • Help links

Adding code to "server.R"

  • updateAssayInputs() - Updates the dropdown lists used for assay selection whenever the available assays change, such as when data is uploaded or modified. Please add new Shiny UI update(...) function calls inside updateAssayInputs() if they use assays as input.
  • A list of Shiny UI update functions can be found here: https://shiny.rstudio.com/reference/shiny/1.4.0/

Plot options

[TODO]