View source: R/structure_suggest.R
| structure_suggestions | R Documentation |
Creates structured suggestions organized by UX concepts with specific component recommendations and rationales. Suggestions are ranked by relevance and grouped by concept for systematic implementation.
structure_suggestions(
previous_stage,
chosen_layout,
concepts = NULL,
quiet = NULL
)
previous_stage |
A tibble or list output from an earlier BID stage |
chosen_layout |
Character string with the selected layout type |
concepts |
Optional character vector of additional concepts to include |
The function combines concepts from multiple sources:
Stage 1 theory (from Notice)
Stage 2 inferred concepts (from keywords in story)
Optional user-provided concepts
Each suggestion includes:
title: Brief actionable description
details: Specific implementation guidance
components: R dashboard component recommendations (shiny::, bslib::, etc.)
rationale: 1-2 sentence explanation
score: Relevance ranking (0-1)
Framework Compatibility:
Components prefixed with 'shiny::' require Shiny runtime (either a Shiny app
or Quarto dashboard with server: shiny). Components from bslib, DT, plotly,
reactable, and leaflet work in both Shiny apps and static/OJS Quarto
dashboards.
List of concept groups with ranked suggestions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.