-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renv::restore()
looking in repo archive for current package
#2072
Comments
I believe the problem here is that your Dockerfile is using R 4.3.3: https://github.com/asadow/appSnowMinimal/blob/main/Dockerfile#L1 but Matrix 1.7-1 is only available for R (>= 4.4.0), as per the current description on CRAN. You can also see that with:
|
I set R to 4.4.2 and the same thing happens with DT:
|
I tried to reproduce using an alternate version of your Dockerfile, and all of the packages installed successfully. FROM openanalytics/r-ver:4.4.2
LABEL maintainer="Adam Sadowski <[email protected]>"
RUN /rocker_scripts/setup_R.sh https://packagemanager.posit.co/cran/__linux__/jammy/latest
RUN echo "\noptions(shiny.port=3838, shiny.host='0.0.0.0')" >> /usr/local/lib/R/etc/Rprofile.site
# system libraries of general use
# find through pak::pkg_sysreqs("DT", sysreqs_platform = "ubuntu-22.04")
RUN apt-get update && apt-get install --no-install-recommends -y \
pandoc \
make \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR project
COPY renv.lock renv.lock
RUN R -q -e 'install.packages("renv")'
RUN R -q -e 'renv::init(bare = TRUE)'
RUN R -q -e 'renv::restore()' |
Is the I updated the repo with your
|
I don't really understand how it could be succeeding for me but failing for you; aren't we using the same Dockerfile? Are you working on a machine with a spotty internet connection or something like that? |
Note that this URL does exist; I think internet connectivity or some other issue prevented the download here. |
I'm also at a loss. I noticed that about bslib as well. Yet the call fails at the DT error. I don't believe it is spotty internet as I repeatedly get the error at the DT download. I'll try to build the image locally as I can only assume this is a server issue. |
As per #209, I encountered
renv
trying to install the current version ofMatrix
from the archive.minimal reprex
This happens with or without the suggested fix of adding
repos = c(CRAN = 'https://cloud.r-project.org')
torenv::restore()
.The text was updated successfully, but these errors were encountered: