Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 1.41 KB

File metadata and controls

33 lines (17 loc) · 1.41 KB

ShinyConf2025 Workshop

Title: DIY: Unclog Your Scripts with Plumber in R

Slides

Level: Intermediate


Context

{plumber} is a simple package in R that lets you create APIs from roxygen2-style decorators. This workshop dives into the rather practical use case of having an existing analysis and wanting to share it with others. The answer, well, is through an API.

Structure

The repository has three directories, which will hopefully all be touched upon during the workshop.

  1. Plumber Basics: This section deals with the basics of creating an API step-by-step.
  2. Plumber with Authentication: This section is about adding authentication to Plumber and how it works.
  3. {httr2} with Plumber: This section uses the API using the httr2 package.

The repository also has a DockerfileExample which is helpful for deployment if you want to use services other than Posit Connect e.g. Render

Contact

You can contact me on LinkedIn or through email deepanshkhurana[at]outlook[dot]com.

Addendum

Pavel Demin (@Gotfrid) created this wonderful cookbook that is a really good place to start as boilerplate for your own API.