use pkgdepends for package installation #80
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello, this is a followup on #78.
I see that @calderjo managed to get the build working, thats awesome !! I couldn't figure out how to make
make_dependency_list
work so I went a different direction, utilizing pkgdepends to do the package installation, I'm submitting the PR anyway in case its useful.main changes are:
packages_users contains many entries that are obviously not packages such as empty string, single letters, and words that aren't packages such as "geom_text" (thats a function from ggplot2).
besides not having to mess with
make_dependency_list
, it can install packages from both CRAN and Bioconductor, and it also handles installing missing system libraries if the package declares them, these are the dependencies pkgdepends installed, besides the libraries that are already being installed on the Dockerfile:p$show_sysreqs()
+ cargo - gifski + default-jdk - Deducer, JavaGD, JGR, OpenStreetMap, openNLPdata, RWeka, RWekajars, XLConnect, arulesCBA, bartMachine, bartMachineJARs, coreNLP, dismo, glmulti, h2o, openNLP, venneuler, rCBA, rJava, rcdk, xlsx + gdal-bin - sf, terra, concaveman, mlr, warbleR + jags - MBNMAdose, R2jags, mlr, rjags, runjags + libavfilter-dev - av + libboost-all-dev - RQuantLib + libgl1-mesa-dev - rgl + libgmp3-dev - Rmpfr, arrangements, PMCMRplus, gmp, mlr + libmpfr-dev - Rmpfr, PMCMRplus, mlr + libopenmpi-dev - ergm, mlr + libprotoc-dev - protolite + libquantlib0-dev - RQuantLib + libxslt-dev - xslt + pandoc-citeproc - bayesplot, footBayes, loo, rstanarm + pari-gp - elliptic + rustc - gifski + tcl - rriskDistributions, tcltk2 + texlive - animation, huxtable, texreg + tk - rriskDistributions, tcltk2 + tk-dev - rriskDistributions, tcltk2 + tk-table - rriskDistributions, tcltk2