-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
Prophet has rstan as a dependency which has been updated recently.
The last change of rstan introduce a new dependency to V8 package which needs some headers which are not available in Alpine linux (at least not that I know of).
Here's a tweak I use which is not a long term solution:
# Install all prophet dependencies but rstan
RUN installr -t "linux-headers gfortran g++" StanHeaders ggplot2 inline gridExtra loo pkgbuild BH dygraphs extraDistr grid methods rstantools scales stats tidyr xts
# Add system requirement for rstan (can't use installr when installing package from source, or with option dependencies != NA)
RUN apk add g++ linux-headers gfortran
# Install rstan and prophet
RUN Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/Archive/rstan/rstan_2.19.3.tar.gz", type = "source")'
RUN Rscript -e 'install.packages("prophet", repos = "https://cloud.r-project.org/", dependencies = "Depends")'
I don't know if a better solution can be found
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels