Sign inSign up

crazycapivara/plumber-datasets

By crazycapivara

•Updated almost 9 years ago

Serve R Datasets via REST API

Image
0

10K+

crazycapivara/plumber-datasets repository overview

⁠docker-plumber

example on how to create a rest api with r using plumber⁠ and run it in a box

⁠build

# 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 .

⁠run

docker run -p 8000:8000 -d crazycapivara/plumber-datasets

⁠browse

# 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 ...

Tag summary

Content type

Image

Digest

Size

323 MB

Last updated

almost 9 years ago

docker pull crazycapivara/plumber-datasets