technologiestiftung / flusshygiene-opencpu-base

Base image with all our dependencies for the opencpu kwb-f/fhpredict api
MIT License
0 stars 2 forks source link

List all R Packages that can be installed before installing fhpredict #1

Open ff6347 opened 4 years ago

ff6347 commented 4 years ago

See hsonne's comment below for how these packages were determined.

hsonne commented 4 years ago

BH is by far the biggest package in terms of size and number of files (see below). It is required by the package "rstan" as we can read in its DESCRIPTION file:

LinkingTo: Rcpp (>= 0.12.0), RcppEigen (>= 0.3.3.3.0), BH (>= 1.66), StanHeaders (>= 2.18.0)

The package "rstan" is required by "rstanarm". Installing "rstanarm" will install most of the packages that are required by "fhpredict" as the following code confirms. It uses our package "kwb.package" to determine the (few) packages that are required by "fhpredict" but not by "rstanarm":

> packages <- kwb.package::packageDependencies(c("fhpredict", "rstanarm"))
> setdiff(packages$fhpredict, packages$rstanarm)
 [1] "fs"        "httr"      "kwb.dwd"   "kwb.utils" "lubridate" "raster"    "rstanarm"  "sf"       
 [9] "sp"        "curl"      "classInt"  "DBI"       "units"     "e1071"     "class"   

grafik

ff6347 commented 4 years ago

Thank you.