This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Install package ‘EnsDb.Mmusculus.v79’ had non-zero exit status

Hi everyone,

I am trying to install

> library(EnsDb.Mmusculus.v79)* by using R, but I keep having these error:
Error in library(EnsDb.Mmusculus.v79) : 
  there is no package called ‘EnsDb.Mmusculus.v79’*

I also tried by using the command:

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install("EnsDb.Mmusculus.v79")*

but it still give the error:

BiocManager::install("EnsDb.Mmusculus.v79")
'getOption("repos")' replaces Bioconductor standard repositories, see
'?repositories' for details
replacement repositories:
    CRAN: https://cran.rstudio.com/
Bioconductor version 3.13 (BiocManager 1.30.16), R 4.1.2 (2021-11-01)
Installing package(s) 'EnsDb.Mmusculus.v79'
installing the source package ‘EnsDb.Mmusculus.v79’
trying URL 'https://bioconductor.org/packages/3.13/data/annotation/src/contrib/EnsDb.Mmusculus.v79_2.99.0.tar.gz'
Content type 'application/x-gzip' length 46050579 bytes (43.9 MB)
==================================================
downloaded 43.9 MB
 installing *source* package ‘EnsDb.Mmusculus.v79’ ...
using staged installation
R
inst
byte-compile and prepare package for lazy loading
Error: package or namespace load failed for ‘AnnotationDbi’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘png’
Execution halted
ERROR: lazy loading failed for package ‘EnsDb.Mmusculus.v79’
removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/EnsDb.Mmusculus.v79’
The downloaded source packages are in
    ‘/private/var/folders/yl/m3pt4t4s4g1dn0_ycqg5llt00000gn/T/Rtmp3vFEHX/downloaded_packages’
Warning message:
In .inet_warning(msg) :
  installation of package ‘EnsDb.Mmusculus.v79’ had non-zero exit status

I would be really appreciate if you guys can help me with this. Thank you!

library install r package

1 answer

Read the error message - you need to install.packages('png').

Thank you so much, it works now!

Please accept my answer to mark this post as solved.

Log in to answer this question.