Skip to content

Commit 4e4d001

Browse files
authored
Deal with corrupt rdb file issue
When `pkgbuild` is updated because the base docker image has an outdated version and is then used to install a package, the error pkgbuild.rdb is corrupt comes up. By updating packages in a separate R session from where the git checkout package is built, we can (usually) avoid the problem.
1 parent f1d3584 commit 4e4d001

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ WORKDIR /home/rstudio
44

55
COPY --chown=rstudio:rstudio . /home/rstudio/
66

7+
RUN Rscript -e "options(repos = c(CRAN = 'https://cran.r-project.org')); BiocManager::install(ask=FALSE)"
8+
79
RUN Rscript -e "options(repos = c(CRAN = 'https://cran.r-project.org')); devtools::install('.', dependencies=TRUE, build_vignettes=TRUE, repos = BiocManager::repositories())"

0 commit comments

Comments
 (0)