之前的R版本是4.1,而且很多R包版本也不够新,有一些小瑕疵一直懒得解决,比如seurat的热图一直有莫名其妙的乱码,最近又遇到了两个高频包它们共用的一个依赖包出现了版本冲突,忍无可忍了,就卸载了4.1版本的R,并且删除了一千多个R包,节省了10G的硬盘空间。
然后重新安装了最新版R,并且重新一次性安装了一千多个包,这次居然有意外收获,莫名其妙的我可以在线直接安装GitHub包啦:
> remotes::install_github(repo = 'genecell/COSGR')
Downloading GitHub repo genecell/COSGR@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: rlang (1.0.3 -> 1.0.4) [CRAN]
5: pillar (1.7.0 -> 1.8.0) [CRAN]
6: sass (0.4.1 -> 0.4.2) [CRAN]
7: htmltools (0.5.2 -> 0.5.3) [CRAN]
8: igraph (1.3.2 -> 1.3.3) [CRAN]
Enter one or more numbers, or an empty line to skip updates: 3
Installing 2 packages: RcppParallel, proxyC
将程序包安装入‘C:/Users/win10/AppData/Local/R/win-library/4.2’
(因为‘lib’没有被指定)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/RcppParallel_5.1.5.zip'
Content type 'application/zip' length 1284458 bytes (1.2 MB)
downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.2/proxyC_0.2.4.zip'
Content type 'application/zip' length 478351 bytes (467 KB)
downloaded 467 KB
程序包‘RcppParallel’打开成功,MD5和检查也通过
程序包‘proxyC’打开成功,MD5和检查也通过
下载的二进制程序包在
C:\Users\win10\AppData\Local\Temp\RtmpILwdej\downloaded_packages里
✔ checking for file 'C:\Users\win10\AppData\Local\Temp\RtmpILwdej\remotes1e9f89a48e8\genecell-COSGR-5511add/DESCRIPTION'
─ preparing 'COSG':
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building 'COSG_0.9.0.tar.gz'
将程序包安装入‘C:/Users/win10/AppData/Local/R/win-library/4.2’
(因为‘lib’没有被指定)
* installing *source* package 'COSG' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (COSG)
>
之前每次安装GitHub包,我都是先下载压缩包,再本地安装这个压缩包的。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有