【问题标题】:Cannot Download Bioconductor's "org.Hs.eg.db" package on R 4.0.1无法在 R 4.0.1 上下载 Bioconductor 的“org.Hs.eg.db”包
【发布时间】:2021-07-08 14:08:54
【问题描述】:

我正在尝试安装 Bioconductor (Ver. 3.12) 包“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

我尝试将 R 降级到 3.6.3 版本,并重新安装 R 和 RStudio。我在下面附上了我的会话信息。

关于如何上传这个包有什么想法吗?

最好的 圣地亚哥

尝试:

BiocManager::install("BiocManager")
BiocManager::install("org.Hs.eg.db")
library(org.Hs.eg.db)

sessionInfo()
R version 4.0.5 (2021-03-31)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Mojave 10.14.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] parallel  stats4    stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] TxDb.Hsapiens.UCSC.hg38.knownGene_3.10.0 GO.db_3.12.1                            
 [3] OrganismDbi_1.32.0                       GenomicFeatures_1.42.3                  
 [5] GenomicRanges_1.42.0                     GenomeInfoDb_1.26.7                     
 [7] AnnotationDbi_1.52.0                     IRanges_2.24.1                          
 [9] S4Vectors_0.28.1                         Biobase_2.50.0                          
[11] BiocGenerics_0.36.0                      BiocManager_1.30.12                     

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.6                  lattice_0.20-41             prettyunits_1.1.1          
 [4] Rsamtools_2.6.0             Biostrings_2.58.0           assertthat_0.2.1           
 [7] utf8_1.2.1                  BiocFileCache_1.14.0        R6_2.5.0                   
[10] RSQLite_2.2.6               httr_1.4.2                  pillar_1.6.0               
[13] zlibbioc_1.36.0             rlang_0.4.10                progress_1.2.2             
[16] curl_4.3                    rstudioapi_0.13             blob_1.2.1                 
[19] Matrix_1.3-2                BiocParallel_1.24.1         stringr_1.4.0              
[22] RCurl_1.98-1.3              bit_4.0.4                   biomaRt_2.46.3             
[25] DelayedArray_0.16.3         compiler_4.0.5              rtracklayer_1.50.0         
[28] pkgconfig_2.0.3             askpass_1.1                 openssl_1.4.3              
[31] tidyselect_1.1.0            SummarizedExperiment_1.20.0 tibble_3.1.0               
[34] GenomeInfoDbData_1.2.4      matrixStats_0.58.0          XML_3.99-0.6               
[37] fansi_0.4.2                 crayon_1.4.1                dplyr_1.0.5                
[40] dbplyr_2.1.1                GenomicAlignments_1.26.0    bitops_1.0-6               
[43] rappdirs_0.3.3              RBGL_1.66.0                 grid_4.0.5                 
[46] lifecycle_1.0.0             DBI_1.1.1                   magrittr_2.0.1             
[49] graph_1.68.0                stringi_1.5.3               cachem_1.0.4               
[52] XVector_0.30.0              xml2_1.3.2                  ellipsis_0.3.1             
[55] generics_0.1.0              vctrs_0.3.7                 tools_4.0.5                
[58] bit64_4.0.5                 glue_1.4.2                  purrr_0.3.4                
[61] hms_1.0.0                   MatrixGenerics_1.2.1        fastmap_1.1.0              
[64] memoise_2.0.0  

【问题讨论】:

    标签: bioinformatics bioconductor


    【解决方案1】:

    我在https://support.bioconductor.org/p/9136239/#9136319找到了解决方案:

    这似乎是最新版本的 RSQLite 包和 RStudio 之间的通信中的错误。在此期间,您可以运行:

    options(connectionsObserver = NULL)
    

    在您的 RStudio R 会话中尝试加载这些包之前(或者,使用通过 RSQLite 建立连接的包)。 您还可以使用遥控器安装以前版本的 RSQLite,例如与:

    remotes::install_version("RSQLite", version = "2.2.5")
    

    按照这些步骤并重新启动 R 后,它对我有用。

    【讨论】:

    • 感谢它也对我有用。在此之前我在 R 终端上工作。
    猜你喜欢
    • 1970-01-01
    • 2016-01-18
    • 2022-11-03
    • 2018-12-22
    • 2020-09-08
    • 1970-01-01
    • 1970-01-01
    • 2017-02-01
    • 1970-01-01
    相关资源
    最近更新 更多