Skip to content

Commit

Permalink
install fishbase directly from cran
Browse files Browse the repository at this point in the history
  • Loading branch information
langbart committed Aug 24, 2024
1 parent ca11587 commit f8e8cb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,13 @@ RUN install2.r --error --skipinstalled \
treemapify \
sf

# Ensure remotes package is up to date
RUN R -e "install.packages('remotes', repos='https://cran.rstudio.com/')"
# Install specific version of rfishbase
RUN Rscript -e 'install.packages("rfishbase", repos="https://cran.rstudio.com/", dependencies = TRUE)'

# Install GitHub packages
RUN installGithub.r hrbrmstr/ggchicklet
RUN installGithub.r glmmTMB/glmmTMB/glmmTMB

# Install specific version of rfishbase
RUN Rscript -e 'remotes::install_version("rfishbase", version = "4.1.2", dependencies = TRUE, verbose = TRUE)'


#RUN Rscript -e "devtools::install_version('glmmTMB', version = '1.1.5')"
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,13 @@ RUN install2.r --error --skipinstalled \
treemapify \
sf

# Ensure remotes package is up to date
RUN R -e "install.packages('remotes', repos='https://cran.rstudio.com/')"
# Install specific version of rfishbase
RUN Rscript -e 'install.packages("rfishbase", repos="https://cran.rstudio.com/", dependencies = TRUE)'

# Install GitHub packages
RUN installGithub.r hrbrmstr/ggchicklet
RUN installGithub.r glmmTMB/glmmTMB/glmmTMB

# Install specific version of rfishbase
RUN Rscript -e 'remotes::install_version("rfishbase", version = "4.1.2", dependencies = TRUE, verbose = TRUE)'

# Install local package
COPY . /home
Expand Down

0 comments on commit f8e8cb2

Please sign in to comment.