Closed spsanderson closed 4 years ago
What container of ours are you actually running? You don't say, or if you do I missed in all the other information thrown out here. And no, tje sha1 sum does not help. We publish about two dozen container images, so being more specific helps everybody.
Are you aware that CRAN puts out packages to be installable for the current R version. So if you were to run, say, rocker/r-base
which is already at R 3.6.3, then of course mlr3 would be installable.
Reproducible example (where I launch into bash
and use install.r
for personal preference)
edd@rob:~$ docker run --rm -ti rocker/r-base bash
root@40c126936056:/# install.r mlr3
also installing the dependencies ‘R6’, ‘backports’, ‘checkmate’, ‘data.table’, ‘digest’, ‘lgr’, ‘mlbench’, ‘mlr3measures’, ‘mlr3misc’, ‘paradox’, ‘uuid’
[... lots of output omitted ... ]
So mlr3
is clearly there for the normal bread-and-butter container. If you use a different one, presumably r-ver (which version though?) you need to check that the package was installable when the snapshot was made. r-ver gives you a "time machine". That can be a constraint too.
Remember that the rocker versioned stack locks all packages to the last date said version of R was current by default. If you really want to stick with 3.5.3
but still install packages that were first published after it was no longer current (see ), you should override the default version-locked mirror with a normal CRAN mirror (e.g. options(repos = "https://cran.rstudio.com")
)
Otherwise, I strongly suggest you consider running a more recent version of R, e.g. rocker/tidyverse:3.6.2
(or simply rocker/tidyverse:latest
) where your above command should work fine. (yes, 3.6.3 was just released and latest
will move to that soon)!
Yep, @cboettig and I basically told you the exact same thing at the same time. Basing this on R 3.5.2 from a year ago may not be the best bet if you want packages from now. I like rocker/r-base
myself.
(Also just to pick nits: if the desire is mlr3
then tidyverse
does little for you as there is close to no overlap.)
@cboettig Ahhhhh ok, I was thinking something like that, that packages were only good at the time of the version, thank you.
@eddelbuettel I use tidyverse for so many projects and mlr for one specific but thank you
No sweat or worries. In that case take the tidyverse container as a base, but remain cogniscient of the "contract" you signed with a versioned container: "stability to the release point in time first", even at the expense of installability. A feature you chose and opted for, and not a bug ;-)
Totally understand now hence the close thank you much, loving the container so far just getting the feel for it sorry for the erroneous bug report.
It's not easy as there is 'so much'. Maybe look the R Journal piece, it defines a few things.
Remember that the rocker versioned stack locks all packages to the last date said version of R was current by default. If you really want to stick with
3.5.3
but still install packages that were first published after it was no longer current (see ), you should override the default version-locked mirror with a normal CRAN mirror (e.g.options(repos = "https://cran.rstudio.com")
)Otherwise, I strongly suggest you consider running a more recent version of R, e.g.
rocker/tidyverse:3.6.2
(or simplyrocker/tidyverse:latest
) where your above command should work fine. (yes, 3.6.3 was just released andlatest
will move to that soon)!
Any update on R 3.6.3 @cboettig ?
@nturaga whoops, missed this ping. Yes, we moved up to 3.6.3 a little while ago.
I am getting an error trying to install a package from CRAN that requires R >= 3.1.0
I am using the following image: sha256:ee12b86c83a21c22ace8d4c9cceaabdbf5a9cbec6dd7486399d7b5e170568947
I am running R on Ubuntu Server 18.04LTS with the latest updates as of today 3-1-2020. I am running R and R-Studio as a docker container via the rocker-org project with tag 3.5.3 on the tidyverse image.
I tried from both CRAN and github
CRAN
GitHub