加载包时 Rsamtools 错误

Rsamtools error when loading packages

当我想在 R 中加载 Rsamtools 包时,我看到如下错误:

  Error in get(method, envir = home) : 
    lazy-load database'/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rsamtools/      R/Rsamtools.rdb' is corrupt
  In addition: Warning messages:
  1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4],  :
    restarting interrupted promise evaluation
  2: In get(method, envir = home) :
    restarting interrupted promise evaluation
  3: In get(method, envir = home) : internal error -3 in R_decompress1
  Error: package or namespace load failed for ‘Rsamtools’

sessionInfo 的输出是:

  R version 3.2.0 (2015-04-16)
  Platform: x86_64-apple-darwin13.4.0 (64-bit)
  Running under: OS X 10.9 (Mavericks)

  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] stats4    parallel  stats     graphics  grDevices utils     datasets        methods  
  [9] base     

  other attached packages:
   [1] UniProt.ws_2.8.0     RCurl_1.95-4.6       bitops_1.0-6               RSQLite_1.0.0       
   [5] DBI_0.3.1            BiocInstaller_1.18.2 Biostrings_2.36.1    XVector_0.8.0       
   [9] AnnotationDbi_1.30.1 Biobase_2.28.0       GenomicRanges_1.20.4       GenomeInfoDb_1.4.0  
  [13] IRanges_2.2.3        S4Vectors_0.6.0      BiocGenerics_0.14.0 

  loaded via a namespace (and not attached):
  [1] zlibbioc_1.14.0 tools_3.2.0     biomaRt_2.24.0  XML_3.98-1.2   

不仅我不能使用 Rsamtools,而且当我想使用我的旧包时,我可以在发生某些错误之前使用它们,例如使用 "TxDb.Hsapiens.UCSC.hg19.knownGene" 包时:

  Loading required package: GenomicFeatures
  Error in get(method, envir = home) : 
    lazy-load database       '/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rsamtools/R/Rsamto      ols.rdb' is corrupt
  In addition: Warning messages:
  1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4],  :
    restarting interrupted promise evaluation
  2: In get(method, envir = home) :
    restarting interrupted promise evaluation
  3: In get(method, envir = home) : internal error -3 in R_decompress1                          Error: package ‘GenomicFeatures’ could not be loaded

我该怎么办?

令人惊讶的是!重新启动会话解决了问题:|