{"repo":"rstudio/plumber","free":true,"listed":false,"github":"https://github.com/rstudio/plumber","clone":"git clone https://github.com/rstudio/plumber.git","description":"Turn your R code into a web API.","language":"R","stars":1437,"topics":["plumber","r","api","api-server"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"plumber Plumber allows you to create a web API by merely decorating your existing R source code with roxygen2 -like comments. Take a look at an example. These comments allow plumber to make your R functions available as API endpoints. You can use either # as the prefix or #' , but we recommend the former since #' will collide with roxygen2 . You can visit this URL using a browser or a terminal to run your R function and get the results. For instance http://localhost:8000/plot will show you a histogram, and http://localhost:8000/echo?msg=hello will echo back the 'hello' message you provided. Here we're using curl via a Mac/Linux terminal. As you might have guessed, the request's query string parameters are forwarded to the R function as arguments (as character strings). You can also send your data as JSON: Installation You can install the latest stable version from CRAN using the following command: If you want to try out the latest development version, you can install it from GitHub. Cheat Sheet Hosting If you're just getting started with hosting cloud servers, the DigitalOcean integration included in plumber will be the best way to get started. You'll be able to get a server hosting your custom API in just two R commands. To deploy to DigitalOcean, check out the plumber companion package plumberDeploy . Posit Connect is a commercial publishing platform that enables R developers to easily publish a variety of R content types, including Plumber APIs. Additional documentation is","default_branch":null,"files":null,"tree":[],"storefront":"/r/rstudio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rstudio/plumber/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}