You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM rocker/verse:4.2.2
RUN mkdir -p /usr/local/lib/R/etc/ /usr/lib/R/etc/
RUN echo "options(renv.config.pak.enabled = TRUE, repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl', Ncpus = 4)" | tee /usr/local/lib/R/etc/Rprofile.site | tee /usr/lib/R/etc/Rprofile.site
RUN R -e 'install.packages(c("renv","remotes"))'
COPY renv.lock renv.lock
RUN R -e 'renv::restore()'
this results in the following error:
I have attempted fix by changing Dockerfile_base to force an install of renv version 0.17.3 to:
FROM rocker/verse:4.2.2
RUN mkdir -p /usr/local/lib/R/etc/ /usr/lib/R/etc/
RUN echo "options(renv.config.pak.enabled = TRUE, repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl', Ncpus = 4)" | tee /usr/local/lib/R/etc/Rprofile.site | tee /usr/lib/R/etc/Rprofile.site
RUN R -e 'install.packages("remotes")'
RUN R -e 'remotes::install_version("renv", version = "0.17.3")'
COPY renv.lock renv.lock
RUN R -e 'renv::restore()'
which results in a successful build when using the docker build command.
Thanks for the bug report, and sorry for the delay. It seems like this issue may be resolved with pak 0.7.0; I'm no longer able to reproduce. Are you still seeing this issue?
I am running
renv::restore()
as part of the followingdocker_build
command:docker build -f Dockerfile_base --progress=plain -t golem.test.project_base .
where
Dockerfile_base
is:this results in the following error:
I have attempted fix by changing
Dockerfile_base
to force an install of renv version 0.17.3 to:which results in a successful build when using the
docker build
command.I believe this might relate to this bug and is affecting golem package upstream.
I have attached my
renv.lock
file as renv.lock.txt so that i can upload it here.Thank you for any help. Please let me know if any addition information is needed.
The text was updated successfully, but these errors were encountered: