- 首先下载IMvigor210CoreBiologies包得压缩包文件,然后本地安装
这一步参考
IMvigor210CoreBiologies包安装指北 - 腾讯云开发者社区-腾讯云 (tencent.com)
【R>>IMvigor210CoreBiologies】免疫反应 - 简书 (jianshu.com)
IMvigor210CoreBiologies的安装以及数据获取 - 简书 (jianshu.com)
可以看到上述教程中的安装难点均在于 DESeq这个包
我们从以下链接中下载对应压缩包文件
Bioconductor - DESeq (tu-dortmund.de)

最核心的一步来了!!!!
使用devtools
包中的 install_local
函数强制安装这个包
devtools::install_local('C:/Users/shihaosun/Desktop/DESeq_1.34.1.tar.gz',force = T)
── R CMD build ───────────────────────────────────────────────────────────
✔ checking for file 'C:\AppData\Local\Temp\RtmpkBBtqZ\remotes110818515094\DESeq/DESCRIPTION' ...
─ preparing 'DESeq':
✔ checking DESCRIPTION meta-information ...
─ cleaning src
✔ checking vignette meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building 'DESeq_1.34.1.tar.gz'
将程序包安装入‘C:/Users/shihaosun/AppData/Local/R/win-library/4.2’
(因为‘lib’没有被指定)
* installing *source* package 'DESeq' ...
** using staged installation
** libs
gcc -I"C:/PROGRA~1/R/R-42~1.1/include" -DNDEBUG -I"c:/rtools42/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c pval.c -o pval.o
pval.c: In function 'add_from_both_sides':
pval.c:26:11: warning: unused variable 'esttotalperlength' [-Wunused-variable]
26 | double esttotalperlength = total/2;
| ^~~~~~~~~~~~~~~~~
gcc -shared -s -static-libgcc -o DESeq.dll tmp.def pval.o -Lc:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64 -Lc:/rtools42/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~1/R/R-42~1.1/bin/x64 -lR
installing to C:/Users/shihaosun/AppData/Local/R/win-library/4.2/00LOCK-DESeq/00new/DESeq/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
Warning message:
package 'locfit' was built under R version 4.2.2
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Warning: package 'locfit' was built under R version 4.2.2
** testing if installed package can be loaded from final location
Warning: package 'locfit' was built under R version 4.2.2
** testing if installed package keeps a record of temporary installation path
* DONE (DESeq)
可以看到全程无报错 直接安装。
包得加载也顺利完成。


小小记录一下!
网友评论