Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

R-4.0 ? #208

Closed
nturaga opened this issue Apr 15, 2020 · 10 comments
Closed

R-4.0 ? #208

nturaga opened this issue Apr 15, 2020 · 10 comments

Comments

@nturaga
Copy link
Contributor

nturaga commented Apr 15, 2020

Hi,

I was wondering when the new R-4.0-alpha rocker/r-ver and rocker/rstudio images will come out?

Best,

Nitesh

@cboettig
Copy link
Member

yup, just tickled the build with your patch so will just take a bit to propagate.

But note for the actual R 4.0.0 release, we'll be doing a significant upgrade on the versioned stack. In particular:

  • We're moving to an Ubuntu-LTS based image (likely starting at 20.04)
  • We'll have GPU-flavored (cuda) versions of the stack, including dedicated ML images
  • The stack should be more modular

See https://github.com/rocker-org/rocker-versioned2 and https://hub.docker.com/rockerdev for source and test images.

@nturaga
Copy link
Contributor Author

nturaga commented May 1, 2020

Hi @cboettig ,

Sorry to broach this again, any sense on when R-4.0 will be available? Parts of our community are wondering if it makes sense to build a temp image with R-4.0 before rocker has them made available.

Best,

Nitesh

@cboettig
Copy link
Member

cboettig commented May 1, 2020

@nturaga Temp images are already available and have been for a little while over at https://hub.docker.com/u/rockerdev.

I'm aiming to have most of the images up by later today over on the official rocker side, though they may see a few tweaks after that while we sort out any bugs.

This release switches to Ubuntu, and with Ubuntu 20.04 (focal) being released only the day before R 4.0.0, a lot of downstream sources we use haven't fully propagated to Ubuntu 20.04. (for instance, ubuntugis PPAs are still not available for 20.04, nor are nvidia cuda docker images. We'll probably launch without these on 20.04, now that most other pieces are live).

We will probably also have images that build on the older Ubuntu 18.04 (bionic) base as well, which will include that in the tag (4.0.0-ubuntu18.04 -- you'll see it on many of the rockerdev images) as well as 20.04 images.

Any feedback/testing on the rockerdev images would be great. This is obviously a bigger shift than usual, and will have a more detailed documentation of the changes to come soon after, but most things should work identically to before.

@nturaga
Copy link
Contributor Author

nturaga commented May 1, 2020

Thanks for the reply @cboettig. This is helpful. I'll be testing out a few images, and i'll make sure to get some feedback on this.

@seandavi
Copy link

seandavi commented May 1, 2020

Thanks for the reply @cboettig. This is helpful. I'll be testing out a few images, and i'll make sure to get some feedback on this.

Same here. Thanks a bunch, @cboettig.

@nturaga
Copy link
Contributor Author

nturaga commented May 5, 2020

Hi @cboettig

As promised, here is some feedback, when I mount a volume on to the rstudio user, the permissions seem to be an issue to the mount volume

my-computer:~$ docker run -it -v /home/turaganitesh/tmp-mount:/home/rstudio/mount --user rstudio rockerdev/rstudio:4.0.0-ubuntu18.04 bash

As you can see below,

rstudio@39fc4c2befd1:~$ pwd
/home/rstudio
rstudio@39fc4c2befd1:~$ ls -al
total 20
drwxr-xr-x 1 rstudio rstudio 4096 May  5 15:12 .
drwxr-xr-x 1 root    root    4096 Apr 30 23:00 ..
drwxr-xr-x 2    1001    1002 4096 May  5 15:11 mount
drwxr-xr-x 3 rstudio rstudio 4096 Apr 30 23:00 .rstudio

The rstudio user doesn't have permissions to write to that directory mount. I will demonstrate below,

rstudio@39fc4c2befd1:~$ R

R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

..... (removing some lines here)

Type 'q()' to quit R.

> .libPaths("mount/")
> .libPaths()
[1] "/home/rstudio/mount"           "/usr/local/lib/R/site-library"
[3] "/usr/local/lib/R/library"
> install.packages('BiocManager')
Installing package into ‘/home/rstudio/mount’
(as ‘lib’ is unspecified)
Warning in install.packages("BiocManager") :
  'lib = "/home/rstudio/mount"' is not writable
Would you like to use a personal library instead? (yes/No/cancel) no
Error in install.packages("BiocManager") : unable to install packages

As you can see I do not have write privileges to this location. It seems that instead of the user, it's giving me a group id here, drwxr-xr-x 2 1001 1002 4096 May 5 15:11 mount.

Thoughts on how this can be fixed? It seems we did something of the sorts in the previous debian image as well.

@nturaga
Copy link
Contributor Author

nturaga commented May 5, 2020

@cboettig Another question for you, where can I find the Dockerfile for rockerdev/rstudio:R.4.0.0-ubuntu18.04 and I guess it inherits from rockerdev/r-ver:R.4.0.0-ubuntu18.04? It'll be very helpful.

@cboettig
Copy link
Member

cboettig commented May 6, 2020

@nturaga excellent, thanks for the feedback.

Dockerfiles are all in https://github.com/rocker-org/rocker-versioned2/tree/master/dockerfiles, a bit messy but hopefully the name scheme is intuitive if not exactly pleasing on the eye.

Re the permissions, do you not get the same issue with rocker/rstudio image? That looks to me like an issue regarding your host user -- recall docker volume sharing requires that user UIDs match, not names, and it looks like your host is maybe UID 1001 while the default rstudio user is UID 1000. You should still be able to specify a UID using the env var USERID as before (see https://www.rocker-project.org/use/managing_users/)

@nturaga
Copy link
Contributor Author

nturaga commented May 7, 2020

@nturaga excellent, thanks for the feedback.

Dockerfiles are all in https://github.com/rocker-org/rocker-versioned2/tree/master/dockerfiles, a bit messy but hopefully the name scheme is intuitive if not exactly pleasing on the eye.

Re the permissions, do you not get the same issue with rocker/rstudio image? That looks to me like an issue regarding your host user -- recall docker volume sharing requires that user UIDs match, not names, and it looks like your host is maybe UID 1001 while the default rstudio user is UID 1000. You should still be able to specify a UID using the env var USERID as before (see https://www.rocker-project.org/use/managing_users/)

It does seem to be an issue with my host-user @cboettig. Thanks for pointing it out.

lcolladotor added a commit to lcolladotor/biocthis that referenced this issue May 9, 2020
Created both an introductory and a developer's notes vignette, updated README
and docs with examples, added a second biocViews term, fixed some small
bugs/typos.

Related links (as many as I could remember):

* https://rstd.io/tidytools19
* https://twitter.com/CVWickham
* https://twitter.com/hadleywickham
* https://www.rstudio.com/products/rstudio/download
* https://comunidadbioinfo.github.io/post/building-tidy-tools-cdsb-runconf-2019/#.XrbLMxNKiu4
* http://bioconductor.org/
* https://lcolladotor.github.io/pkgs/
* https://stat.ethz.ch/pipermail/bioc-devel/2020-March/016365.html
* https://www.bioconductor.org/help/docker/
* https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016532.html
* https://github.com/features/actions
* https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016650.html
* r-lib/actions#84
* r-lib/usethis#1108
* r-lib/styler#636
* Bioconductor/BiocCheck#57
* Bioconductor/bioconductor.org#54
* http://bioconductor.org/developers/how-to/coding-style/
* https://style.tidyverse.org/
* https://twitter.com/lorenzwalthert
* https://twitter.com/mt_morgan
* https://docs.travis-ci.com/user/languages/r/
* r-lib/pkgdown#1206
* r-lib/pkgdown#1230
* https://twitter.com/jimhester_
* https://www.jimhester.com/talk/2020-rsc-github-actions/
* https://github.com/Bioconductor/BBS
* https://github.com/Bioconductor/packagebuilder
* https://www.appveyor.com/
* r-hub/rhub#52
* r-hub/rhub#38
* https://www.tidyverse.org/blog/2020/04/usethis-1-6-0/
* https://github.com/r-lib/actions/tree/master/examples
* https://yihui.org/en/2018/03/second-pull-request/
* https://github.com/r-lib/actions/blob/master/examples/check-standard.yaml
* https://help.github.com/en/actions
* https://ropenscilabs.github.io/actions_sandbox/
* https://twitter.com/seandavis12
* https://github.com/seandavi/BiocActions/blob/master/.github/workflows/main.yml
* https://twitter.com/CSoneson
* https://github.com/csoneson/dreval/blob/master/.github/workflows/R-CMD-check.yaml
* https://bioc-community.herokuapp.com/
* https://github.com/leekgroup/derfinderPlot/blob/master/.github/workflows/check-bioc.yml
* https://github.com/LieberInstitute/recount3/blob/master/.github/workflows/check-bioc.yml
* https://github.com/hpages
* r-lib/actions#68
* r-lib/actions#85
* https://twitter.com/opencpu
* https://community.rstudio.com/u/const-ae
* https://community.rstudio.com/t/compiler-support-fo-c-14-features-on-windows/57284/4
* r-lib/xml2#296
* r-lib/xml2#302
* https://github.com/r-lib/usethis/blob/master/.github/workflows/R-CMD-check.yaml
* https://github.com/r-lib/usethis/commits/master/.github/workflows/R-CMD-check.yaml
* https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016703.html
* https://stat.ethz.ch/pipermail/bioc-devel/2020-April/thread.html
* r-lib/remotes#296
* r-lib/actions#86
* r-lib/covr#427
* https://github.com/r-lib/actions/blob/master/examples/pr-commands.yaml
* https://www.digitalocean.com/community/tutorials/how-to-install-git-on-ubuntu-18-04
* r-lib/actions#50
* actions/checkout#238
* https://github.com/rocker-org/rocker-versioned2/blob/master/dockerfiles/Dockerfile_rstudio_4.0.0-ubuntu18.04
* https://twitter.com/niteshturaga
* https://twitter.com/cboettig
* rocker-org/rocker-versioned#208
* https://github.community/t5/GitHub-Actions/bd-p/actions
* https://www.r-consortium.org/blog/2020/03/18/cdsb-diversity-and-outreach-hotspot-in-mexico
* https://github.com/maxheld83
* r-lib/actions#87
* https://github.com/yutannihilation
@cboettig
Copy link
Member

looks like we're all set here. Bug reports against any 4.0 images always appreciated! more user-docs still to come...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants