Hi All,

Thank you all for your help.

I now added the line: library(BiocManager) to my script, as well as deleted the 
information below about the repo, which was causing an issue in my dockerfile:

RUN R -e "install.packages('BiocManager', repos='http://cran.us.r-project.org')"
RUN R -e "BiocManager::install('ggbreak')"

I really appreciate that this forum exists.

Br,
Lauren
--
Lauren J. Gerber
Bioinformatician
Precision Systems Medicine (Kallioniemi) Research Group
iCAN � Digital Precision Cancer Medicine Flagship
Institute for Molecular Medicine Finland (FIMM)
Nordic EMBL Partnership for Molecular Medicine
Biomedicum Helsinki 2U, D301a1
P.O. Box 20 (Tukholmankatu 8)
FI-00014 University of Helsinki, Finland
lauren.ger...@helsinki.fi

From: Dirk Eddelbuettel <e...@debian.org>
Date: Tuesday, 15. October 2024 at 17.12
To: Gerber, Lauren J <lauren.ger...@helsinki.fi>
Cc: r-sig-debian@r-project.org <r-sig-debian@r-project.org>
Subject: Re: R Package: 'ggbreak' in Dockerfile

Lauren,

On 15 October 2024 at 13:51, Gerber, Lauren J wrote:
| I just tried fixing my script and added library(BiocManager) before library
| (ggbreak), then rebuilt the image, and am still getting the same error.

You need _two_ distinct commands. First

    install.packages("BiocManager")

and second once that is done use it to install 'ggbreak' from BioConductor

    BiocManager::install("ggreak")

The two wrappers I showed in my earlier email do this for you, from the
command-line, which I find pleasant for both shell and docker use.
Preferences of course vary but the key here is that a) ggbreak is a
BioConductor package and b) you must use BiocManager::install() to install
those.

Dirk

--
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Reply via email to