Weeks 14 Through 16 Overview

Published

2025-08-11

This wraps up the content for weeks 12 & 13. Now we require some practice! You should head back to our Moodle site to check out your assessment for this week.

We are on the home stretch! It’s time to get back into more computing content. Specifically, we are going to learn more about:

In previous material, we learned how to work with APIs. Now, we are going to create a file that defines an API. This can be done using the plumber package in R.

Docker is an open-source platform that enables developers to automate the deployment, scaling, and management of applications by using containers. For the purposes of this course, we are going to use static docker images that already contain items for us, and build on top of them.

Weeks 14 through 16 Additional Readings/Learning Materials

The help file for plumber can be found here. Additional plumber resources can be found via R Studio’s cheatsheet.

There is also a nice r-bloggers post on APIs and data science. They specifically talk about why would a data scientist want to create an API.

Learning Objectives

Upon completion of this week, students will be able to:

  1. utilize the plumber package to create your own API through R

    a.    explain why you would want to create an API
    b.    use appropriate comment formatting to implement different types of requests
    c.    change the output type of an API request

  2. utilize docker to pull an R image, customize it, and build a custom image or container

    a.    define the terms “container” and “image”
    b.    explain why containers are useful
        c.    dockerize a shiny app

  3. list out and apply common methods for putting a model into practice

Use the table of contents on the left or the arrows at the bottom of this page to navigate to the next learning material!