Serve R Datasets via REST API
10K+
example on how to create a rest api with r using plumber and run it in a box
# build with url
docker build -t crazycapivara/plumber-example \
github.com/crazycapivara/docker-plumber
# build with path (first pull repository)
docker build -t crazycapivara/plumber-datasets .
docker run -p 8000:8000 -d crazycapivara/plumber-datasets
# use "jq" for pretty output and filters
$ curl -s localhost:8000/dataset/iris | jq
$ curl -s localhost:8000/dataset/airquality?limit=5 | jq
$ curl -s localhost:8000/dataset/quakes?limit=6 | jq '.[] | select(.mag > 4.2)'
# feel free to query any dataset from the r-base packages ...
Content type
Image
Digest
Size
323 MB
Last updated
almost 9 years ago
docker pull crazycapivara/plumber-datasets