rocker-org / rocker-versioned

Run current & prior versions of R using docker
https://hub.docker.com/r/rocker/r-ver
GNU General Public License v2.0
297 stars 169 forks source link

Use a newer version of dplyr? #256

Closed radiocontrolled closed 3 years ago

radiocontrolled commented 3 years ago

I'm using rocker/verse:3.6.3. When I do sessionInfo() in an Rscript it tells me I'm getting this version of dyplr:
dplyr_0.8.5. How can I get a newer version of Dplyr? Thanks

This is my dockerfile.

FROM rocker/verse:3.6.3 
ENV DEBIAN_FRONTEND noninteractive
ENV TZ GMT

# Install needed R packages
RUN install2.r --error \
    magick \
    ggpubr \
    extrafont \
    gridExtra \
    purrr \
    lubridate \
    jsonlite \
    ggimage 

RUN install2.r --error \
    -r 'http://cran.rstudio.com' \
    dplyr 

From my codebuild logs I can see this installs 'http://cran.rstudio.com/src/contrib/dplyr_1.0.5.tar.gz' to /usr/local/lib/R/site-library/00LOCK-dplyr/00new/dplyr/libs but I'm not sure how to use this specifc version of dplyer in my R script?

cboettig commented 3 years ago

(@radiocontrolled you probably figured this out but just for the record here: old image versions freeze packages by default for reproducibility. Switch to an image with latest tag to get the latest versions (including current R version), or simply change the default repos selection in options() to use a non-frozen repo.