Skip to contents

Add or modify the Dockerfile in the current project.

Usage

use_docker(
  dir = getwd(),
  rver = NULL,
  stack = "verse",
  date = Sys.Date(),
  file = "Dockerfile",
  open = TRUE
)

Arguments

rver

Which r version to use, defaults to current version.

stack

Which stack to use, possible values are c("r-ver", "rstudio", "tidyverse", "verse", "geospatial").

date

Which date should be used for package instalation, defaults to today.

file

Which file to save to

open

Open the newly created file for editing? Happens in RStudio, if applicable, or via utils::file.edit() otherwise.