knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
This is a proof of concept for running R-based web APIs from plumber. There are two main components to the project:
Dockerfile
: An image, based on the plumber image that installs the package and starts the plumber process.An example of a website using the API is at: dougashton.net/flightsapi. For now the API isn't well documented. And isn't on at all...
There's a simple GET endpoint that I use to test it's working at https://api.dougashton.net/pb/hols/now
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.