美文网首页
代码库2-安装R包相关代码

代码库2-安装R包相关代码

作者: 江湾青年 | 来源:发表于2021-12-17 19:58 被阅读0次

使用withr的C99标准装包

library(withr)
with_makevars(c(PKG_CFLAGS = "-std=c11"),
BiocManager::install("scran"),
assignment = "+=")

指定安装某版本的R包

packageurl <- "https://cran.r-project.org/src/contrib/Archive/Seurat/Seurat_4.0.5.tar.gz"
install.packages(packageurl, repos=NULL, type="source")
remotes::install_version(package = 'SeuratObject', version = package_version('4.0.2'))

安装本地包

devtools::install_local('/local/txm/software/SnapATAC-master.zip')

相关文章

网友评论

      本文标题:代码库2-安装R包相关代码

      本文链接:https://www.haomeiwen.com/subject/padznltx.html