package or namespace load failed for ‘destiny

R语言这个免费软件坑太多

问题1    
library("destiny")

Error: package or namespace load failed for ‘destiny’:
在从名字空间‘S4Vectors’中出口方法时发现了不是S4通用的函数‘%in%’
解决方法:

问题2 
library("slingshot")

载入需要的程辑包:princurve
Error: package or namespace load failed for ‘slingshot’:
在从名字空间‘S4Vectors’中出口方法时发现了不是S4通用的函数‘%in%’
In addition: Warning message:
程辑包‘princurve’是用R版本3.6.2 来建造的

问题3 
 library("jackstraw")

Error: package or namespace load failed for ‘jackstraw’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
不存在叫‘lfa’这个名字的程辑包
In addition: Warning message:
程辑包‘jackstraw’是用R版本3.6.2 来建造的

问题4
library("org.Mm.eg.db")

Error in library("org.Mm.eg.db") : 不存在叫‘org.Mm.eg.db’这个名字的程辑包

问题5
library("clusterProfiler")

Error: package or namespace load failed for ‘clusterProfiler’:
在从名字空间‘S4Vectors’中出口方法时发现了不是S4通用的函数‘%in%’
In addition: Warning message:
程辑包‘clusterProfiler’是用R版本3.6.2 来建造的

 问题6
 library("GOSemSim")

Error: package or namespace load failed for ‘GOSemSim’:
在从名字空间‘S4Vectors’中出口方法时发现了不是S4通用的函数‘%in%’

问题7
 library("ReactomePA")
Error in library("ReactomePA") : 不存在叫‘ReactomePA’这个名字的程辑包

if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")

BiocManager::install("ReactomePA")
Bioconductor version 3.10 (BiocManager 1.30.10), R 3.6.1 (2019-07-05)
Installing package(s) 'ReactomePA'
also installing the dependencies ‘reactome.db’, ‘graphite’

trying URL 'https://mirrors.ustc.edu.cn/bioc//packages/3.10/bioc/bin/windows/contrib/3.6/graphite_1.32.0.zip'
Content type 'application/zip' length 859455 bytes (839 KB)
downloaded 839 KB

trying URL 'https://mirrors.ustc.edu.cn/bioc//packages/3.10/bioc/bin/windows/contrib/3.6/ReactomePA_1.30.0.zip'
Content type 'application/zip' length 804648 bytes (785 KB)
downloaded 785 KB

package ‘graphite’ successfully unpacked and MD5 sums checked
package ‘ReactomePA’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Windows\Temp\RtmpyeWHSh\downloaded_packages
installing the source package ‘reactome.db’

trying URL 'https://mirrors.ustc.edu.cn/bioc//packages/3.10/data/annotation/src/contrib/reactome.db_1.70.0.tar.gz'
Content type 'application/gzip' length 454979427 bytes (433.9 MB)
downloaded 433.9 MB

  • installing source package 'reactome.db' ...
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
错误: package 'BiocGenerics' 0.30.0 is loaded, but >= 0.31.1 is required by 'S4Vectors'
停止执行
ERROR: lazy loading failed for package 'reactome.db'
* removing 'C:/Users/wlx/Documents/R/win-library/3.6/reactome.db'

The downloaded source packages are in
‘C:\Windows\Temp\RtmpyeWHSh\downloaded_packages’
Installation path not writeable, unable to update packages: annotate, AnnotationDbi, BH,
Biobase, BiocGenerics, BiocManager, BiocParallel, BiocVersion, biocViews, boot, broom,
callr, cli, clusterProfiler, covr, curl, DBI, DelayedArray, doFuture, DOSE, DT, edgeR,
enrichplot, exactRankTests, fansi, farver, fgsea, foreign, future, future.apply,
geneplotter, GenomeInfoDb, GenomeInfoDbData, GenomicRanges, ggpubr, ggridges, globals,
GO.db, GOSemSim, gplots, graph, GSEABase, GSVA, hexbin, hms, HSMMSingleCell, IRanges,
KernSmooth, knitr, limma, listenv, MASS, Matrix, metap, mgcv, mime, monocle, mvtnorm,
nlme, org.Hs.eg.db, pillar, plotly, prettyunits, purrr, qvalue, R.oo, R.utils, R6,
RBGL, RcppArmadillo, RcppEigen, Rdpack, rlang, roxygen2, RSpectra, RSQLite, rvcheck,
rversions, S4Vectors, Seurat, SingleR, singscore, slam, SummarizedExperiment,
survival, testthat, VGAM, xfun, XVector, zlibbioc
Old packages: 'bibtex', 'bit', 'caTools', 'data.table', 'digest', 'hdf5r', 'igraph',
'plyr', 'ranger', 'Rcpp', 'RcppAnnoy', 'reticulate', 'scales', 'sctransform',
'SDMTools', 'statmod', 'stringi', 'uwot', 'vcd', 'vctrs', 'zoo'
Update all/some/none? [a/s/n]:

 a = range(2000)
 for i in a:
    if i % 2 == 0:
        continue
    print(i + 1)

qqq
代码块:

将要显示的代码块放在3对反引号中间,CSDN提供的编译器支持不同的语法高亮,只要在反引号后接上语言,例如:

a = range(2000)
for i in a:
   if i % 2 == 0:
       continue
   print(i + 1)

1
2
3
4
5
6
7
显示效果:

a = range(2000)
for i in a:
if i % 2 == 0:
continue
print(i + 1)
————————————————
版权声明:本文为CSDN博主「布衣书生-Python」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/PoGeN1/article/details/82182830

你可能感兴趣的:(package or namespace load failed for ‘destiny)