-
Notifications
You must be signed in to change notification settings - Fork 281
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
Improve use of install.packages() #20
Conversation
- From 5 install commands down to 1 by listing packages in `pkgs` variable. - Use ncores to parallelize compiles as each package is installed from source.
Thanks for the improvements! One note (maybe @minrk can confirm) is that I think increasing the number of cores won't make a difference on On that note, if you have any idea for how we can avoid building from source on linux, I'd love to hear it :-) |
@choldgraf as the image is using For example, apt-get update && apt-get install -y r-cran-ggplot2 c.f. https://cran.r-project.org/bin/linux/debian/#administration-and-maintenance |
@coatless Actually it's probably not a good idea to install If you're using |
@cboettig thanks for the thoughts! We've also been discussing this topic over in jupyterhub/repo2docker#412 ... we hadn't realized that were no binaries built for the linux world. It seems that some people are actually just using the anaconda distribution w/ the conda-forge repository to install R packages, which seems like a hacky-but-workable solution for linux. Seems like there are lots of sub-optimal solutions out there but nothing that's obviously the way to go :-/ |
Incorrect as stated. Ie the Rutter PPAs mentioned on the CRAN README have ~ 3000 of the 13000 CRAN packages as binaries. Of course, those are current as opposed to snapshotted a la MRAN, but saying "oh, linux has no binaries, let's just switch to anaconda" is not entirely correct in its reasoning. |
Ewk! I missed that portion. Thanks for pointing that out @cboettig. |
pkgs
variable.