use_docker_packages: Add dependencies to Dockerfile

Description Usage Arguments

View source: R/docker.R

Description

Adds package dependencies as a new RUN statement to Dockerfile. Sorts packages first into source (cran & github) and then alphabetically.

Usage

1
2
3
4
5
6
7
8
9
use_docker_packages(
  packages,
  github = NULL,
  strict = TRUE,
  file = "Dockerfile",
  write = TRUE,
  open = write,
  append = TRUE
)

Arguments

packages

Which packages to add.

github

Are there github packages?

strict

Defaults to TRUE, force a specific version for github packages.

file

Where is the 'Dockerfile'?

write

Should the 'Dockerfile' be modified?

open

Should the file be opened?

append

Should the return value be appended to the 'Dockerfile'?


jimbrig/jimstemplates documentation built on Dec. 21, 2021, 12:05 a.m.