Skip to contents

Create a Plumber API dockerfile template

Usage

dk_template_plumber(
  r_version = NULL,
  port = 8000,
  api_file = "plumber.R",
  additional_pkgs = NULL
)

Arguments

r_version

R version to use (default: current version)

port

Port to expose (default: 8000)

api_file

Path to plumber.R file (default: "plumber.R")

additional_pkgs

Additional R packages to install

Value

A dockerfile object