Hello there, friends! I hope I am posting this in the right category but feel free to move it. I am writing R packages that, among other things, are going to start publishing plumber APIs. The code in the R package will be used to for the APIs, and it makes sense to package both the code and the API together. I'll be publishing these on RStudio Connect, of which I am a huge fan.
My question is about best practices for where to keep the various bits and pieces of code if I want a plumber API packaged together with other code. I am picturing something involving API code in
/inst and then a
deployAPI.R file inside
/R that just has basically
plumb() in it, much like Dean Attali's guide for making a Shiny app in an R package. Has anyone else experimented with this? What has/has not worked well? Are there best practices documented out there anywhere?