已解决Error: package or namespace load failed for ‘org.Hs.eg.db’

在服务器上用Rstudio的时候想加载org.Hs.eg.db包

>   library(org.Hs.eg.db)
Error: package or namespace load failed for ‘org.Hs.eg.db’:
 .onLoad failed in loadNamespace() for 'org.Hs.eg.db', details:
  call: l$contains
  error: $ operator is invalid for atomic vectors

同样的问题,参考
https://support.bioconductor.org/p/9136329/

解决,参考https://blog.csdn.net/u012110870/article/details/115862254

#手动设置环境变量
options(connectionObserver = NULL)

或者

#安装旧版本RSQLite
install.packages("remotes")
remotes::install_version("RSQLite", "2.2.5")

你可能感兴趣的:(已解决Error: package or namespace load failed for ‘org.Hs.eg.db’)