Skip to content

Any call to ggplot2 in the current bioconductor_docker:devel image makes R/Rstuido **CRASH** #27

@r-cheologist

Description

@r-cheologist

Describe the bug
With the current bioconductor_docker:devel image a call to ggplot2 out of the box crashes R/RStudio with an error like this:

29 Apr 2021 12:10:12 [rsession-rstudio] ERROR session hadabend; LOGGED FROM: rstudio::core::Error {anonymous}::rInit(const rstudio::r::session::RInitInfo&) src/cpp/session/SessionMain.cpp:680

Upon plotting, the R console freezes and crashes with above error upon entering Return.

To Reproduce
Steps to reproduce the behavior:

  1. docker pull bioconductor/bioconductor_docker:devel

  2. Call

     docker run -d \
       -p 127.0.0.1:8787:8787 \
       -v /tmp:/tmp \
       -e ROOT=TRUE \
       -e DISABLE_AUTH=TRUE \
       bioconductor/bioconductor_docker:devel
    
  3. Use a browser and navigate to localhost:8787.

  4. In the R cosole install ggplot2 with BiocManager::install("ggplot2", update = FALSE) - UPDATING OTHER R PACKAGES DOES NOT HELP

  5. Run the following (derived from ?ggplot2::ggplot) - DO NOT SOURCE, but step through script (Shift+ Return):

     library(ggplot2)
     df <- data.frame(gp = factor(rep(letters[1:3], each = 10)), y = rnorm(30))
     ds <- do.call(rbind, lapply(split(df, df$gp), function(d) {
       data.frame(mean = mean(d$y), sd = sd(d$y), gp = d$gp)
     }))
     ggplot(df, aes(gp, y)) +
       geom_point() +
       geom_point(data = ds, aes(y = mean), colour = 'red', size = 3)
    

Expected behavior
Plot to appear

Desktop (please complete the following information):

  • OS: Manjaro testing
  • Browser chromium
  • Version Chromium 90.0.4430.93 Arch Linux

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions