Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using R plumber for web API over HTTPS

I am trying to use Plumber in R to expose a model through web API. I want the API calls to be secure over https. I tried to find information on implementing secure API using plumber but unfortunately haven't found anything. Does anyone has experience of dong that? Or any other solutions to expose a R model over secure API?

like image 373
Anshuman Panwar Avatar asked Apr 24 '18 12:04

Anshuman Panwar


People also ask

Can you build an API in R?

The plumber package allows you to create APIs from your R code. It does this through special comments that give instructions on how to turn the functions in your script into API endpoints. It's pretty amazing — with this package, your R code is easily accessible from other tools and frameworks.

What is plumber API R?

plumber: An API Generator for RGives the ability to automatically generate and serve an HTTP API from R functions using the annotations in the R documentation around your functions. Version: 1.2.1.

Which R package is used for generating a web API from existing R code?

plumber is an R package that allows existing R code to be exposed as a web service through special decorator comments. With minimal overhead, R programmers and analysts can use plumber to create REST APIs that expose their work to any number of internal and external systems.


1 Answers

See https://www.rplumber.io/docs/hosting.html for a few different options. DigitalOcean and RStudio Connect would both support this.

like image 161
Jeff Allen Avatar answered Sep 29 '22 00:09

Jeff Allen