#RStats hivemind:

What is current best practice for including a shiny interface within a package?

Anyone know of a good example?

@coolbutuseless I am not claiming to be best practice, but nevertheless the pkgsearch package has a shiny app.
@coolbutuseless @gaborcsardi the testthat package also has a (little) shiny app. Not sure if there is a defined best practice at this stage.

@jameslairdsmith @coolbutuseless @gaborcsardi {blogdown} includes a new_post shiny widget that I can't immediately trace the source of.

For non-CRAN packages I've just put the app in inst/shiny/app/ but I can't speak to the "right" approach.

@jonocarroll @jameslairdsmith @coolbutuseless @gaborcsardi I used the {blogdown} widget as the basis for a new post widget for {distilltools}. Here’s the PR for it, should make tracing the relevant bits of the shiny app easier. I don’t know how current everything here is though (e.g., {miniUI} hasn’t been updated in 6 years): https://github.com/EllaKaye/distilltools/pull/12/files?file-filters%5B%5D=.R&file-filters%5B%5D=.dcf&file-filters%5B%5D=.yml&show-viewed-files=true
Add RStudio addin for interactively creating a new post from a template by mccarthy-m-g · Pull Request #12 · EllaKaye/distilltools

Cool package! I'm in the midst of creating a distill blog and really like the vision of this. I wanted to contribute with something users will likely find helpful: I've created an RStudio a...

GitHub