Skip to content

Commit

Permalink
try installing packages via Rscript.exe directly instead of with renv…
Browse files Browse the repository at this point in the history
…::restore()
  • Loading branch information
spfeiffe committed May 20, 2024
1 parent b4d5e97 commit fb0c086
Show file tree
Hide file tree
Showing 7 changed files with 270 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ COPY .Rprofile .Rprofile
COPY renv/activate.R renv/activate.R
COPY renv/settings.json renv/settings.json
RUN Rscript -e 'install.packages("renv")'
RUN Rscript -e 'install.packages("lme4")'
RUN Rscript -e 'renv::restore()'
RUN Rscript -e 'install.packages("remotes")'
RUN Rscript -e 'install_all_packages_in_lockfile.R'
# RUN Rscript -e 'renv::restore()'

# This part copies in the rest of the project
COPY . /app
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.bak
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ COPY .Rprofile .Rprofile
COPY renv/activate.R renv/activate.R
COPY renv/settings.json renv/settings.json
RUN Rscript -e 'install.packages("renv")'
RUN Rscript -e 'renv::restore()'
RUN Rscript -e 'install_all_packages_in_lockfile.R'
# RUN Rscript -e 'renv::restore()'

# This part copies in the rest of the project
COPY . /app
Expand Down
214 changes: 214 additions & 0 deletions install_all_packages_in_lockfile.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
remotes::install_version("BH", version="1.84.0-0")
remotes::install_version("ContDataQC", version="2.0.7.9032")
remotes::install_version("ContDataSumViz", version="0.1.0.9020")
remotes::install_version("DBI", version="1.2.2")
remotes::install_version("DEoptimR", version="1.1-3")
remotes::install_version("DT", version="0.33")
remotes::install_version("Deriv", version="4.1.3")
remotes::install_version("IHA", version="0.2-41")
remotes::install_version("KernSmooth", version="2.23-24")
remotes::install_version("MASS", version="7.3-60.2")
remotes::install_version("Matrix", version="1.7-0")
remotes::install_version("R6", version="2.5.1")
remotes::install_version("RColorBrewer", version="1.1-3")
remotes::install_version("Rcpp", version="1.0.12")
remotes::install_version("RcppEigen", version="0.3.4.0.0")
remotes::install_version("StreamThermal", version="1.1")
remotes::install_version("XLConnect", version="1.0.10")
remotes::install_version("anytime", version="0.3.9")
remotes::install_version("askpass", version="1.2.0")
remotes::install_version("assertthat", version="0.2.1")
remotes::install_version("backports", version="1.4.1")
remotes::install_version("base64enc", version="0.1-3")
remotes::install_version("bit", version="4.0.5")
remotes::install_version("bit64", version="4.0.5")
remotes::install_version("bitops", version="1.0-7")
remotes::install_version("blob", version="1.2.4")
remotes::install_version("boot", version="1.3-30")
remotes::install_version("brew", version="1.0-10")
remotes::install_version("brio", version="1.1.5")
remotes::install_version("broom", version="1.0.6")
remotes::install_version("bslib", version="0.7.0")
remotes::install_version("caTools", version="1.18.2")
remotes::install_version("cachem", version="1.1.0")
remotes::install_version("callr", version="3.7.6")
remotes::install_version("cellranger", version="1.1.0")
remotes::install_version("class", version="7.3-22")
remotes::install_version("classInt", version="0.4-10")
remotes::install_version("cli", version="3.6.2")
remotes::install_version("clipr", version="0.8.0")
remotes::install_version("codetools", version="0.2-20")
remotes::install_version("colorspace", version="2.1-0")
remotes::install_version("commonmark", version="1.9.1")
remotes::install_version("conflicted", version="1.2.0")
remotes::install_version("cpp11", version="0.4.7")
remotes::install_version("crayon", version="1.5.2")
remotes::install_version("credentials", version="2.0.1")
remotes::install_version("crosstalk", version="1.2.1")
remotes::install_version("curl", version="5.2.1")
remotes::install_version("data.table", version="1.15.4")
remotes::install_version("dataRetrieval", version="2.7.15")
remotes::install_version("daymetr", version="1.7.1")
remotes::install_version("dbplyr", version="2.5.0")
remotes::install_version("desc", version="1.4.3")
remotes::install_version("devtools", version="2.4.5")
remotes::install_version("diffobj", version="0.3.5")
remotes::install_version("digest", version="0.6.35")
remotes::install_version("doBy", version="4.6.21")
remotes::install_version("downlit", version="0.4.3")
remotes::install_version("dplyr", version="1.1.4")
remotes::install_version("dtplyr", version="1.3.1")
remotes::install_version("e1071", version="1.7-14")
remotes::install_version("ellipsis", version="0.3.2")
remotes::install_version("evaluate", version="0.23")
remotes::install_version("fansi", version="1.0.6")
remotes::install_version("farver", version="2.1.2")
remotes::install_version("fastmap", version="1.2.0")
remotes::install_version("fontawesome", version="0.5.2")
remotes::install_version("forcats", version="1.0.0")
remotes::install_version("fs", version="1.6.4")
remotes::install_version("future", version="1.33.2")
remotes::install_version("gargle", version="1.5.2")
remotes::install_version("generics", version="0.1.3")
remotes::install_version("gert", version="2.0.1")
remotes::install_version("ggplot2", version="3.5.1")
remotes::install_version("ggthemes", version="5.1.0")
remotes::install_version("gh", version="1.4.1")
remotes::install_version("gitcreds", version="0.1.2")
remotes::install_version("globals", version="0.16.3")
remotes::install_version("glue", version="1.7.0")
remotes::install_version("googledrive", version="2.1.1")
remotes::install_version("googlesheets4", version="1.1.1")
remotes::install_version("gtable", version="0.3.5")
remotes::install_version("haven", version="2.5.4")
remotes::install_version("highr", version="0.10")
remotes::install_version("hms", version="1.1.3")
remotes::install_version("htmltools", version="0.5.8.1")
remotes::install_version("htmlwidgets", version="1.6.4")
remotes::install_version("httpuv", version="1.6.15")
remotes::install_version("httr", version="1.4.7")
remotes::install_version("ids", version="1.0.1")
remotes::install_version("ini", version="0.3.1")
remotes::install_version("isoband", version="0.2.7")
remotes::install_version("jquerylib", version="0.1.4")
remotes::install_version("jsonlite", version="1.8.8")
remotes::install_version("knitr", version="1.46")
remotes::install_version("labeling", version="0.4.3")
remotes::install_version("later", version="1.3.2")
remotes::install_version("lattice", version="0.22-6")
remotes::install_version("lazyeval", version="0.2.2")
remotes::install_version("lifecycle", version="1.0.4")
remotes::install_version("listenv", version="0.9.1")
remotes::install_version("lme4", version="1.1-35.3")
remotes::install_version("lubridate", version="1.9.3")
remotes::install_version("magrittr", version="2.0.3")
remotes::install_version("memoise", version="2.0.1")
remotes::install_version("mgcv", version="1.9-1")
remotes::install_version("microbenchmark", version="1.4.10")
remotes::install_version("mime", version="0.12")
remotes::install_version("miniUI", version="0.1.1.1")
remotes::install_version("minpack.lm", version="1.2-4")
remotes::install_version("minqa", version="1.2.7")
remotes::install_version("modelr", version="0.1.11")
remotes::install_version("munsell", version="0.5.1")
remotes::install_version("ncdf4", version="1.22")
remotes::install_version("nlme", version="3.1-164")
remotes::install_version("nloptr", version="2.0.3")
remotes::install_version("numDeriv", version="2016.8-1.1")
remotes::install_version("openssl", version="2.2.0")
remotes::install_version("padr", version="0.6.2")
remotes::install_version("parallelly", version="1.37.1")
remotes::install_version("pbkrtest", version="0.5.2")
remotes::install_version("pillar", version="1.9.0")
remotes::install_version("pkgbuild", version="1.4.4")
remotes::install_version("pkgconfig", version="2.0.3")
remotes::install_version("pkgdown", version="2.0.9")
remotes::install_version("pkgload", version="1.3.4")
remotes::install_version("plotly", version="4.10.4")
remotes::install_version("plyr", version="1.8.9")
remotes::install_version("praise", version="1.0.0")
remotes::install_version("prettyunits", version="1.2.0")
remotes::install_version("processx", version="3.8.4")
remotes::install_version("profvis", version="0.3.8")
remotes::install_version("progress", version="1.2.3")
remotes::install_version("promises", version="1.3.0")
remotes::install_version("proxy", version="0.4-27")
remotes::install_version("ps", version="1.7.6")
remotes::install_version("purrr", version="1.0.2")
remotes::install_version("qpcR", version="1.4-1")
remotes::install_version("rJava", version="1.0-11")
remotes::install_version("ragg", version="1.3.2")
remotes::install_version("rappdirs", version="0.3.3")
remotes::install_version("rcmdcheck", version="1.4.0")
remotes::install_version("readr", version="2.1.5")
remotes::install_version("readxl", version="1.4.3")
remotes::install_version("rematch", version="2.0.0")
remotes::install_version("rematch2", version="2.1.2")
remotes::install_version("remotes", version="2.5.0")
remotes::install_version("renv", version="1.0.7")
remotes::install_version("reprex", version="2.1.0")
remotes::install_version("reshape2", version="1.4.4")
remotes::install_version("rgl", version="1.3.1")
remotes::install_version("rlang", version="1.1.3")
remotes::install_version("rmarkdown", version="2.27")
remotes::install_version("robustbase", version="0.99-2")
remotes::install_version("roxygen2", version="7.3.1")
remotes::install_version("rprojroot", version="2.0.4")
remotes::install_version("rstudioapi", version="0.16.0")
remotes::install_version("rversions", version="2.1.2")
remotes::install_version("rvest", version="1.0.4")
remotes::install_version("s2", version="1.1.6")
remotes::install_version("sass", version="0.4.9")
remotes::install_version("scales", version="1.3.0")
remotes::install_version("selectr", version="0.4-2")
remotes::install_version("sessioninfo", version="1.2.2")
remotes::install_version("sf", version="1.0-16")
remotes::install_version("shiny", version="1.8.1.1")
remotes::install_version("shinyBS", version="0.61.1")
remotes::install_version("shinyFiles", version="0.9.3")
remotes::install_version("shinyWidgets", version="0.8.6")
remotes::install_version("shinyalert", version="3.1.0")
remotes::install_version("shinycssloaders", version="1.0.0")
remotes::install_version("shinydashboard", version="0.7.2")
remotes::install_version("shinyjqui", version="0.4.1")
remotes::install_version("shinyjs", version="2.1.0")
remotes::install_version("shinythemes", version="1.2.0")
remotes::install_version("shinyvalidate", version="0.1.3")
remotes::install_version("sourcetools", version="0.1.7-1")
remotes::install_version("stringi", version="1.8.4")
remotes::install_version("stringr", version="1.5.1")
remotes::install_version("survival", version="3.6-4")
remotes::install_version("sys", version="3.4.2")
remotes::install_version("systemfonts", version="1.1.0")
remotes::install_version("terra", version="1.7-71")
remotes::install_version("testthat", version="3.2.1.1")
remotes::install_version("textshaping", version="0.3.7")
remotes::install_version("tibble", version="3.2.1")
remotes::install_version("tibbletime", version="0.1.8")
remotes::install_version("tidyr", version="1.3.1")
remotes::install_version("tidyselect", version="1.2.1")
remotes::install_version("tidyverse", version="2.0.0")
remotes::install_version("timechange", version="0.3.0")
remotes::install_version("tinytex", version="0.51")
remotes::install_version("tzdb", version="0.4.0")
remotes::install_version("units", version="0.8-5")
remotes::install_version("urlchecker", version="1.0.1")
remotes::install_version("usethis", version="2.2.3")
remotes::install_version("utf8", version="1.2.4")
remotes::install_version("uuid", version="1.2-0")
remotes::install_version("vctrs", version="0.6.5")
remotes::install_version("viridisLite", version="0.4.2")
remotes::install_version("vroom", version="1.6.5")
remotes::install_version("waldo", version="0.5.2")
remotes::install_version("whisker", version="0.4.1")
remotes::install_version("withr", version="3.0.0")
remotes::install_version("wk", version="0.9.1")
remotes::install_version("writexl", version="1.5.0")
remotes::install_version("xfun", version="0.44")
remotes::install_version("xml2", version="1.3.6")
remotes::install_version("xopen", version="1.0.1")
remotes::install_version("xtable", version="1.8-4")
remotes::install_version("xts", version="0.13.2")
remotes::install_version("yaml", version="2.3.8")
remotes::install_version("zip", version="2.3.1")
remotes::install_version("zoo", version="1.8-12")
Empty file.
19 changes: 19 additions & 0 deletions lockfile.html

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions lockfile.html.bak

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion renv.lock.bak

Large diffs are not rendered by default.

0 comments on commit fb0c086

Please sign in to comment.