Comments (2)
One thing worth saying: renv
's purpose is primarily to allow users to manage their own project-local R libraries. Do we need to think about whether renv
should also allow an organization to manage R libraries that are then used by its users?
from environments.rstudio.com.
@kevinushey I've been wondering about that question as well.
For the first use case (per-project time traveling through checkpoints), you can get pretty far by using renv
as it exists today; e.g.
options(repos = c(CRAN = 'https://my-pkgs.example.com/cran/123'))
renv::init()
That will reinstall everything for the project at transaction 123
, even if the user had never touched renv
previously.
The 2nd case is more difficult though - because the challenge goes beyond per-project library management. The most common "solution" I see implemented in the wild is for admins to install packages into the system library. Usually, they tie this to R versions; e.g. each R version gets its own system library of packages. Naive admins will update that system library over time 😱 , more cautious admins will install all the packages at once and then not touch them until the next R version comes out with a new system library. We've worked hard in RSPM to make sure curated sources behave in the middle of these 2 approaches: admins can add packages overtime to the repo, but they always get added from the same "checkpoint" unless the admin explicitly updates. However, we don't give admins an easy way to keep a system library in sync with a curated source.
I almost wonder if we could give them tooling to do that in a safer fashion... I'm not sure what that would be though. I'm not sure that would be a great use case for renv
; admins might prefer an affordance in the IDE or some way to interact with Rprofile.site. If you have any ideas, I'd be all ears. Let me know if the use case isn't clear.
from environments.rstudio.com.
Related Issues (20)
- Typo in index.Rmd
- Add code examples to the upgrade troubleshooting section
- Migrate to RStudio theme
- Add video demo of Snapshot and Restore with renv HOT 1
- Broken link to picking packages
- Organization
- Fix link
- Add content on using a frozen snapshot for a single project HOT 1
- Add content on how to permanently set repos
- Create outline of Python environment management eco system HOT 4
- Deep dive into poetry HOT 2
- migrate to quarto HOT 1
- audit video content
- Review of docs/python/poetry.qmd HOT 7
- Rename master to main
- Where is R_HOME?
- Update GA with move to posit.co HOT 1
- Add WIP flags
- Rename strategies -> reproduce
- TOC?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from environments.rstudio.com.