Git Product home page Git Product logo

Comments (2)

kevinushey avatar kevinushey commented on September 26, 2024

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.

slopp avatar slopp commented on September 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.