Add packages from current environment to dockerfile

add_environ_packages(dockerfile)

Arguments

dockerfile,

a dockerfile object

Value

a dockerfile object

Examples

dockerfile() %>% add_environ_packages()
#> $RUN #> [1] "R -e \"install.packages('devtools', dependencies=TRUE, repos='http://cran.rstudio.com/'\"" #> #> $RUN #> [1] "R -e \"install.version('callr', version=NULL, dependencies='Imports', upgrade=FALSE)\"" #> #> $RUN #> [1] "R -e \"install.version('dplyr', version=NULL, dependencies='Imports', upgrade=FALSE)\"" #> #> $RUN #> [1] "R -e \"install.version('magrittr', version=NULL, dependencies='Imports', upgrade=FALSE)\"" #> #> $RUN #> [1] "R -e \"install.version('miniUI', version=NULL, dependencies='Imports', upgrade=FALSE)\"" #> #> $RUN #> [1] "R -e \"install.version('reticulate', version=NULL, dependencies='Imports', upgrade=FALSE)\"" #> #> $RUN #> [1] "R -e \"install.version('rstudioapi', version=NULL, dependencies='Imports', upgrade=FALSE)\"" #> #> $RUN #> [1] "R -e \"install.version('shiny', version=NULL, dependencies='Imports', upgrade=FALSE)\"" #> #> $RUN #> [1] "R -e \"install.version('stevedore', version=NULL, dependencies='Imports', upgrade=FALSE)\"" #> #> $RUN #> [1] "R -e \"install.version('tibble', version=NULL, dependencies='Imports', upgrade=FALSE)\"" #> #> $` ` #> [1] "" #>