问题描述
install.packages("hgu133a.db")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Warning in install.packages :
package ‘hgu133a.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
原因
hgu133a.db版本与R版本不一致
版本对应关系:http://www.bioconductor.org/about/release-announcements/
解决办法
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("hgu133a.db")
参考:http://www.bioconductor.org/packages/release/data/annotation/html/hgu133a.db.html