-
Notifications
You must be signed in to change notification settings - Fork 94
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
Consider use of littler install2.r
scripts in the "Writing Dockerfiles" docs?
#41
Comments
@cboettig we have had some changes to the firewalls and it's preventing Docker from establishing an SSL with the sites for downloading some of our packages via I have tried passing in an environment variable to the R session in the Docker file as follows, but the R session doesn't seem to be picking it up:
I have also tried putting the following at the top of the Docker file in question, but that doesn't seem to work either:
Do you have any suggestions as to how I can get the R packages in |
shooting from the hip here, but is not using the https url an option? e.g. I'm not familiar with using |
@cboettig thanks for the response. With some help from Docker support and the network engineers, we've isolated the issue to some changes on our proxy server that aren't allowing I was looking over the documentation/code for |
yeah,
etc |
Yup, can do, I just like the cleanliness of |
install2.r
just provides a more concise syntax for adding R packages in Dockerfiles, it's available on all rocker images since we use it in the Rocker Dockerfiles too. One can just do:to install those packages.
Note that the repo is set by default (rstudio CRAN mirror on
:latest
, versioned images instead pull from the MRAN snapshots by default to ensure reproducibility).The
-e
flag is optional, it makesinstall.packages()
throw an error if the package installation fails (which will cause thedocker build
command to fail). By default,install.packages()
only throws a warning, which means that a Dockerfile can build successfully even if it has failed to install the package.The text was updated successfully, but these errors were encountered: