weinbergerlab / InterventionEvaluatR

Other
5 stars 3 forks source link

INLA dependency causes install issues #72

Open DanWeinberger opened 4 years ago

DanWeinberger commented 4 years ago

@airbornemint when trying to install InterventionEvaluatR, if INLA not installed, problems arise

innermatrix commented 4 years ago

Unfortunately, there's nothing we can do about this; as long as INLA is not on CRAN (and I have no idea why, but it isn't), installing InterventionEvaluatR will always require extra steps for the user — either by adding the INLA package repo to their R/RStudio settings (so that INLA can be downloaded and installed as a dependency of InterventionEvaluatR), or by installing INLA manually (so that the INLA dependency is satisfied before installing InterventionEvaluatR). R has no automatic way to automatically install a dependency from outside of CRAN that I am aware of.

The "best" solution here is for InterventionEvaluatR installation guide to instruct the users to run this first:

options(repos = c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/stable"))