windows安装cellchat

检查包位置

.libPaths('D:/R/R-4.3.1/library')

确认R版本和包路径一致

用R=4.3.1

下载https://github.com/jinworks/CellChat

安装cellchat前根据说明安装依赖

https://github.com/jinworks/CellChat

切换到CellChat-master.zip所在位置,删掉zip/src里的.o .so

setwd('D:/R/R-4.3.1/download/')
library(devtools)
devtools::install_local("CellChat-master.zip")

C:\RBuildTools\4.3

会被自动安装Rtools工具,原先有的要先清空

windows安装RTools

找到Rtools路径C:\RBuildTools\4.3(安装cellchat时的弹窗自动安装)
添加路径到环境变量如下
配置环境变量:安装完成后,需要将RTools的安装路径添加到系统的环境变量中。具体步骤如下:

打开控制面板,并进入“系统和安全” -> “系统” -> “高级系统设置”。
在弹出的窗口中,点击“环境变量”按钮。
在“系统变量”部分,找到名为“Path”的变量,并点击“编辑”按钮。
在弹出的窗口中,点击“新建”按钮,并将RTools的安装路径添加到新建的行中。
确认所有窗口,并重新启动RStudio。

Rtools安装好后再次运行

devtools::install_local("CellChat-master.zip")

检查是否安装成功

packageVersion("CellChat")

使用说明

https://htmlpreview.github.io/?https://github.com/jinworks/CellChat/blob/master/tutorial/CellChat-vignette.html#part-i-data-input-processing-and-initialization-of-cellchat-object

posted on 2024-05-07 17:01  魔法老头  阅读(212)  评论(0编辑  收藏  举报

导航