Description Usage Arguments See Also Examples
install packages from the default CRAN location for R
1 | install_r_lib(df, ..., new = FALSE)
|
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. |
Other dockerfile: build
, cmd
,
copy
, expose
,
from
, install_r_lib_version
,
install
, run
,
update
, write_dockerfile
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.