Prior PR #1458 that sparked conversation.
(Note: PR closed when HEAD branch was moved.)
Goal
Adopt some plumber::plumb_api() functionality for shiny::runExample():
- Package has value, no example name: Provides all examples for package
- No example name, no package name: Provides all examples for all installed packages
- For now, no
edit parameter.
- Printing method
- Use
"shiny" as subfolder within inst to distinguish from generically named "examples" folder
- Keep
examples as is. Packages like {shinytest2} depend on it being there.
- Ask team for new core / bslib examples to fill
inst/shiny apps
Code to alter from:
Prior PR #1458 that sparked conversation.
(Note: PR closed when HEAD branch was moved.)
Goal
Adopt some
plumber::plumb_api()functionality forshiny::runExample():editparameter."shiny"as subfolder withininstto distinguish from generically named "examples" folderexamplesas is. Packages like{shinytest2}depend on it being there.inst/shinyappsCode to alter from:
{plumber}PR: Addplumb_api()andavailable_apis()plumber#631{plumber}function implementation: https://github.com/rstudio/plumber/blob/e829af6a94380cb897441c1c56129504afb9564f/R/plumb.R#L84-L290