I was reading here that in Shiny 1.5 applications will automatically source files in the
R/ folder. This is great.
I'm wondering if one could also load a Shiny application as an R package. In my case, I'm developing an R package with an accompanying Shiny interface. Is there a best practice for organizing this type of tool in such a way that users can install/load the functions/objects as an R package as well as spin up the Shiny interface?