From 091921ad3d6b37aafdbbde334de4629077a34387 Mon Sep 17 00:00:00 2001 From: CJ Yetman Date: Fri, 9 Feb 2024 13:36:38 +0100 Subject: [PATCH] installing pre-built binary versions of {pak} in Dockerfile (#110) closes #103 based on official suggestion by {pak} at https://pak.r-lib.org/reference/install.html#pre-built-binaries --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c214842..40675c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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