-
Notifications
You must be signed in to change notification settings - Fork 11
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 library not recognized in 4.2.2-build? #30
Comments
Hi @tomcardoso I had a look at your project, Running the built container image seems to work too; I was able to load packages which are included in the $ docker run -it --rm ghcr.io/tomcardoso/docker-r-shiny-map:latest R -e "library(shiny)"
R version 4.4.2 (2024-10-31) -- "Pile of Leaves"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu
...
- Project '/app' loaded. [renv 1.0.11]
- The project is out-of-sync -- use `renv::status()` for details.
> library(shiny)
>
>
$ docker run -it --rm ghcr.io/tomcardoso/docker-r-shiny-map:latest R -e "renv::status()"
R version 4.4.2 (2024-10-31) -- "Pile of Leaves"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu
...
- Project '/app' loaded. [renv 1.0.11]
- The project is out-of-sync -- use `renv::status()` for details.
> renv::status()
The following package(s) are in an inconsistent state:
package installed recorded used
base64enc y y n
bit y y n
bit64 y y n
bslib y y n
cachem y y n
... Could you provide more details on the error you are getting please. |
I forked the The only possible explanation I can think of is when running the container the working directory is not |
Sorry for the delay – holidays, etc. Very weird. I might circle back to trying this again down the line (I deployed on shinyapps.io instead when I hit this wall last year)… the fact you can't reproduce it is probably a good sign that there's something wrong on my end, though. |
I just tried spinning the Heroku app back up. Here's what I get, FWIW (ignore the commented out stuff and print statements, that was me doing some basic debugging):
And this is the Heroku build log:
I realize these aren't super helpful on their own, but maybe you'll see something I don't? |
Hi @tomcardoso Unfortunately, I'm still not able to replicate the issue based off this new information. I created FROM ghcr.io/tomcardoso/docker-r-shiny-map:latest
COPY . /app
CMD ["/usr/bin/R", "--no-save", "--gui-none", "-f", "/app/run.R"] Please take a look at the demo project configuration and compare it to your project. Hopefully this helps. EDIT: I assumed that since the If you have included the |
Hey there, I've been trying to get this docker image to work today, but it looks like despite
renv::restore()
being called in your Dockerfile, once I have a project running, the very firstlibrary(pkg)
doesn't work. R says the package can't be found. If I run anrenv::status()
, it tells me the packages listed the lockfile aren't installed.I thought it might be because I had
renv
in my R project and it was getting confused about library paths, so I deleted therenv
folder and files – but I'm still running into this issue. Any ideas? Could this be a pathing issue?FWIW, I'm using
renv
1.0.11 and R 4.2.2. I'm also loadingheroku-docker-r
through my own docker image, listed here: https://github.com/tomcardoso/docker-r-shiny-map/.The text was updated successfully, but these errors were encountered: