Reputation: 11
I've just installed the latest R version 3.5.1, and tried to install the "org.Hs.eg.db" package. But I receive this error when I ran the code:
> install.packages("org.Hs.eg.db")
Installing package into 'C:/Users/ashley/Documents/R/win-library/3.5'
(as 'lib' is unspecified)
Warning in install.packages :
package 'org.Hs.eg.db' is not available (for R version 3.5.1)
Does anyone know what is wrong with this?
I was able to install the "org.Hs.eg.db" package in older R version 3.5.0.
Thank you very much.
Ashley.
Upvotes: 1
Views: 3272
Reputation: 1
Problem: I have faced similar error
install.packages("org.Mm.eg.db") Warning in install.packages : package ‘org.Mm.eg.db’ is not available for this version of R
A version of this package for your version of R might be available elsewhere, see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Solution:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("org.Hs.eg.db")
Upvotes: 0
Reputation: 414
You may use below instruction:
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("org.Hs.eg.db")
Base on this link
Upvotes: 0
Reputation: 5943
org.Hs.eg.db
is a Bioconductor package, and from the error message, it seems that this package is not included in the default repository where R searches.
Bioconductor's install guide says you should use the script they provide to install packages:
Use the
biocLite.R
script to install Bioconductor packages.
And the package's install guide lists the exact commands you need to install org.Hs.eg.db
package:
source("https://bioconductor.org/biocLite.R")
biocLite("org.Hs.eg.db")
Upvotes: 3