Open bschilder opened 2 years ago
Another issue with the devel container that I just noticed.
When developing R packages, I noticed that devtools::install_dev_deps()
produces errors.
devel
Bioconductor docker container, e.g. using these instructions.devtools::install_dev_deps()
:Output:
2: In read.dcf(path) :
cannot open compressed file '/buildzone/DESCRIPTION', probable reason 'No such file or directory'
I confirmed this works fine on my desktop installation of Rstudio.
Related issue from September 2021
I'm able to reproduce the issue you are having with the R/RStudio version mismatch,
Warning messages:
1: R graphics engine version 15 is not supported by this version of RStudio. The Plots tab will be disabled until a newer version of RStudio is installed.
I will investigate this and get back to you.
However, I'm unable to reproduce the read.dcf
issue. Can you just put in a dcf
file manually in a path you know exists and try to read it?
I'm able to successfully read dcf
files.
Even the issue of R/RStudio version mismatch comes from rocker/rstudio:devel
.
I launched the rstudio:devel
docker container and am able to reproduce this. The next step is to explore the rocker-versioned2 GitHub issues and see if anyone has found a solution there.
R Under development (unstable) (2022-01-04 r81445) -- "Unsuffered Consequences"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
>
Warning message:
R graphics engine version 15 is not supported by this version of RStudio. The Plots tab will be disabled until a newer version of RStudio is installed.
@nturaga thanks so much for the quick response!
I see, the root of the issue being caused by rocker/rstudio:devel
makes it tough for you to resolve yourself. Perhaps in the meantime including a warning at the top of the Readme in this repo would help. That way users can know to only use older version of the bioconductor_docker
container that don't have these issues (assuming that's the case).
read.dcf
errorI use read.dcf
in my Readme and vignette headers (and in some code chunks) to dynamically pull in info about the package from the DESCRIPTION file (e.g. here). Though I'm not sure why this would be an issue for install_dev_deps
. Plus, i don't get this error when using the release version of R/Rstudio.
Hi, rocker/rstudio:devel
are images that installed the release version of RStudio Server on rocker/r-ver:devel
, and it seems that RStudio supporting R graphics engine 15 has not been released yet.
See https://github.com/rstudio/rstudio/issues/10058
The workaround is to install the RStudio daily build on rocker/r-ver:devel
instead of using rocker/rstudio:devel
.
FROM rocker/r-ver:devel
ENV S6_VERSION=v2.1.0.2
ENV RSTUDIO_VERSION=daily
ENV DEFAULT_USER=rstudio
ENV PATH=/usr/lib/rstudio-server/bin:$PATH
RUN /rocker_scripts/install_rstudio.sh && /rocker_scripts/install_pandoc.sh
EXPOSE 8787
CMD ["/init"]
Since the installation of RStudio Server takes only a few minutes, rewriting the Dockerfile of this repository like that should have little impact on the build time.
It seems that the latest stable version of RStudio with new graphics support has been released. So the next build may resolve this issue.
There's now a version conflict between R and Rstudio in the
devel
version of the container , which was last pushed 4 days ago.This results in plots being unable to print, as indicated by the following warning message, which is produced in a variety of situations but in my case occurred when I tried installing a remote repo (
remotes::install_github("neurogenomics/MAGMA_Celltyping@bschilder_dev")
):Example Dockerfile: https://github.com/NathanSkene/EWCE/blob/master/Dockerfile