GithubHelp home page GithubHelp logo

Set default CRAN mirror? about rocker HOT 6 CLOSED

hadley avatar hadley commented on July 23, 2024
Set default CRAN mirror?

from rocker.

Comments (6)

cboettig avatar cboettig commented on July 23, 2024

Agreed, but how would you go about this?

In hadleyverse, I set CRAN as the default using a .Rprofile in root, so that at least I can use Rscript -e install_github.

In the RStudio image (and thus images depending on it), I can create the .Rprofile in the user's home directory as part of the script that runs on execution (via supervisord). I can't do it in the Dockerfile itself because we want to be able to specify a user variable at runtime, not hardwire it during build.

from rocker.

eddelbuettel avatar eddelbuettel commented on July 23, 2024

There are different users as @cboettig points out; RStudio runs as user 'rstudio'.

The sanest place would be /etc/R/Rprofile.site And we probably want to to set it in r-base rather than the later ones.

from rocker.

cboettig avatar cboettig commented on July 23, 2024

@eddelbuettel I shoulda waited for you before committing, that's a much better solution.

You'd think I'd have caught on by now to use the global configs instead of adding crap to $HOME ...

from rocker.

cboettig avatar cboettig commented on July 23, 2024

Changes pushed to sandbox branch (As @eddelbuettel suggests, to avoid too many pointless builds on the Docker Hub we'll merge sandbox to master daily).

from rocker.

paulstaab avatar paulstaab commented on July 23, 2024

What about making sandbox the default branch for this repo? Then pull request would go there by default.

from rocker.

cboettig avatar cboettig commented on July 23, 2024

Okay, this is now done in r-base.

from rocker.

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.