Skip to content

Prophet example does not build anymore #22

@denrou

Description

@denrou

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions