A demo of how to use Plumber to create APIs on RStudio Connect.
- Code: https://github.com/SamEdwardes/demo-plumber-penguins
- Deployment: https://colorado.rstudio.com/rsc/demo-plumber-penguins/
https://colorado.rstudio.com/rsc/palmerspenguins/
curl -X GET "https://colorado.rstudio.com/rsc/palmerspenguins/penguins?sample_size=5"
After making any code changes run the following:
rsconnect::writeManifest("app")
RStudio Connect will then automatically redeploy the app.
You can also deploy the app using the rsconnect
api:
rsconnect::deployAPI(
api = "app",
appFiles = c("plumber.R"),
appTitle = "Shiny Penguins Plumber"
)