使用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')