How to create an API for your R code

create an api from r code


In the video linked below we discuss how to convert your R code into an API using the awesome plumber package! Learn more by clicking here or by following the links below. The plumber package allows you to convert R functions into API calls. For example, rather than launching R and executing a function, you can use plumber to turn the function into an API request that can be called from other software (e.g. Python, cURL, etc.). This is enormously useful in a lot of applications e.g. building a web application with Python that can make API calls to R model objects, retrieving R plots into other applications, and more. Check out the video below to learn more!

Link to full video: https://www.youtube.com/watch?v=Z2Aofr4UIFY

To skip to specific parts of the video, you can use the links below:

Workflow: API Workflow with R and plumber
Example 1: Intro example to convert an R function into an API
Example 2: Generating an R plot via an API
Example 3: Calling an R model object using an API

If you enjoy the video, please make sure to subscribe to my channel. Check out my other blog posts by clicking here.