install_r_lib: Install packages for R

Description Usage Arguments See Also Examples

View source: R/dockerfile.R

Description

install packages from the default CRAN location for R

Usage

1

Arguments

df

a dockerfile object from 'dockerfile()'

...

The R packages to install to the docker image

new

boolean indicating if the command should be added to the prior 'Run“ line. Useful for when breaking out lines in the docker image to skip time consuming library build steps. defaults to FALSE.

See Also

Other dockerfile: build, cmd, copy, expose, from, install_r_lib_version, install, run, update, write_dockerfile

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Start a dockerfile based off of the rocker/shiny image to generate a
# shiny server using R version 3.6.1, update all existing software
# and install git and curl.

dockerfile() %>%
 from("rocker/r-ver:devel") %>%
 update() %>%
 install("sudo","gdebi","pandoc","pandoc-citeproc",
         "libcurl4-gnutls-dev","libcairo2-dev",
         "libxtdev","wget") %>%
  install_r_lib("tidyverse")

thebioengineer/dockyard documentation built on Dec. 4, 2019, 1:44 a.m.