-
Notifications
You must be signed in to change notification settings - Fork 7
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
Managing R dependencies #90
Comments
I missed this issue when I was preparing the images for last month's OHW-espanol event. But now that I'm preparing for the next one (Nov 25-29), I'd like to try to make R env management easier and more reliable. I described problems and needs to 2i2c just a couple of days ago (pasted below); don't know yet if they'll be able to help -- their initial reply was "are you using repo2docker? If so, then let me know the GitHub repo and I can take a quick look at your configuration." I'll follow up with them today. @abkfenris do you have time to work with me (and maybe 2i2c) over the next week or so to try to improve this? PS. The old PR #73 is also relevant. (challenges with) Environment management for R image.
|
I believe we had a few different issues with repo2docker that really made it unusable for us on the Python side:
If I remember right, we really hit this wall before we started adding R.
|
I guess only the package name throws people off. It is rstudio-desktop and not rstudio. The updates there are slow though b/c it is notoriously hard to build it. Also, it is super heavy and brings tons of large dependencies. TL;DR if you really need it, it works. It not, I don't think it is worth adding to the env. |
Thanks for the background and updates, @abkfenris and @ocefpaf! Very helpful. I haven't heard back from 2i2c yet (pinged them again today), but I've been reading up on these topics. One step I can -- and will -- take now is to make these core updates to the R image:
I'll update the R image today with these changes, cross my fingers, then test it when it's rebuilt -- assuming it does build 😅 The Dockerfile has the comment "Newer one has bug that doesn't work with jupyter-rsession-proxy" that goes way back and is still found in this Dockerfile on the main 2i2c hub image repo. But from what I've read, the incompatibility was resolved back in Dec. 2021 or so, with @abkfenris I also read the article about renv + Docker, https://rstudio.github.io/renv/articles/docker.html. That looks promising for improving dependency management, but I think it's out of my depth for now, at least as of this week. Among the OHW-espanol organizers and instructors we have several heavy R users; I doubt they have experience with renv in Docker, but I'll ask. We'll see also if that's something 2i2c can help us with. |
2i2c has shared this. Very relevant comparison.
|
There may be a better solution to managing R dependencies reliably these days:
https://rstudio.github.io/renv/articles/docker.html
The text was updated successfully, but these errors were encountered: