Software
plumber

plumber

Turn your R code into a web API.

R

Plumber is an R package that turns R functions into web APIs by adding special comments to your code. It uses roxygen2-style annotations to define API endpoints, allowing you to expose R functions as HTTP services that accept parameters and return JSON, plots, or other data formats.

The package makes it simple to create RESTful APIs without learning a web framework, handling HTTP routing, parameter parsing, and response serialization automatically. It supports both GET and POST requests, accepts parameters from query strings or JSON bodies, and can return various output formats including JSON and images. This enables R developers to make their analysis and modeling work accessible to other applications and services.

Contributors

Resources using plumber