r-cran-* binaries fail to install when specifying R version in runtime.txt
See original GitHub issueBug description
Using R buildpack: when specifying r-3.6-2019-09-24
in runtime.txt installing r-cran-*
binaries using apt.txt fails.
Error references wrong R version r-api-3.4
which is usually installed with r-base-core
. Possibly related to #813.
Expected behaviour
r-cran-*
binaries install with all dependencies.
Actual behaviour
Install fails with error output (from mybinder.org and locally with latest repo2docker). This example tries to install r-cran-crosstalk
but also fails with any other binary:
Step 55/71 : RUN apt-get -qq update && apt-get install --yes --no-install-recommends r-cran-crosstalk && apt-get -qq purge && apt-get -qq clean && rm -rf /var/lib/apt/lists/*
---> Running in 46e19b8d69df
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-cran-crosstalk : Depends: r-api-3.4
Depends: r-cran-htmltools (>= 0.3.5) but it is not going to be installed
Depends: r-cran-jsonlite but it is not going to be installed
Depends: r-cran-lazyeval but it is not going to be installed
Depends: r-cran-r6 but it is not going to be installed
Depends: r-cran-shiny (>= 0.11) but it is not going to be installed
Depends: r-cran-ggplot2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Removing intermediate container 46e19b8d69df
The command '/bin/sh -c apt-get -qq update && apt-get install --yes --no-install-recommends r-cran-crosstalk && apt-get -qq purge && apt-get -qq clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
How to reproduce
- Example repo.
- Or
- Or
jupyter-repo2docker --ref origin/minpro --no-run --debug https://github.com/brooksambrose/studio
Your personal set up
- mybinder.org
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
r-cran-* binaries fail to install when specifying R version in ...
Bug description Using R buildpack: when specifying r-3.6-2019-09-24 in runtime.txt installing r-cran-* binaries using apt.txt fails.
Read more >R for Windows FAQ - The Comprehensive R Archive Network
4.1 Can I install packages into libraries in this version? ... Current binary versions of R are known to run on Windows 7...
Read more >Heroku installing wrong python version - Stack Overflow
You need a runtime.txt and specify the python version there. Edit: Heroku only supports certain python versions:
Read more >2 Efficient set-up | Efficient R programming - GitHub Pages
This section explains how. Previous R versions can be installed from CRAN's archive or previous R releases. The binary versions for all OSs...
Read more >A fresh start for R in VSCode - Medium
What do you need? VSCode : A text editor my Microsoft; R Language: The traditional R run time given by CRAN; VSCode R...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Using https://cran.r-project.org/bin/linux/ubuntu/README.html#administration-and-maintances-of-r-packages brings us back to #813
I think https://launchpad.net/~marutter/+archive/ubuntu/c2d4u is different from the PPA described on https://cran.r-project.org/bin/linux/ubuntu/README.html. The maintainers from the latter said on their mailing list that only the latest version of R is supported by their PPA. I couldn’t find any documentation for the c2d4u PPA regarding which versions of R they support and for how long.
I don’t think we will be letting users add custom PPAs. It feels like a lot of them make very specific assumptions about who you are/what you are doing. Also it seems they tend to be “rolling” in terms of the versions they provide which makes it hard to write a spec for a container now that will still work in a few releases (of the PPA) time.
Reading more about community practice, this should be possible with arbitrary versions of ubuntu and/or R using
ppa:marutter/c2d4u
as explained for example:You and @cboettig were also discussing this last year https://github.com/jupyter/repo2docker/issues/412#issuecomment-443409982, so wondering if adding the PPA is more possible now since r2d had evolved?