Skip to content

Commit

Permalink
installing pre-built binary versions of {pak} in Dockerfile (#110)
Browse files Browse the repository at this point in the history
closes #103 

based on official suggestion by {pak} at
https://pak.r-lib.org/reference/install.html#pre-built-binaries
  • Loading branch information
cjyetman authored Feb 9, 2024
1 parent 2ae1beb commit 091921a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
FROM --platform=linux/amd64 rocker/tidyverse

RUN Rscript -e 'install.packages("pak")'
RUN Rscript -e '\
install.packages("pak", repos = sprintf( \
"https://r-lib.github.io/p/pak/stable/%s/%s/%s", \
.Platform$pkgType, \
R.Version()$os, \
R.Version()$arch \
)) \
'

COPY .env /.env
COPY DESCRIPTION /DESCRIPTION
Expand Down

0 comments on commit 091921a

Please sign in to comment.