Skip to content

Commit

Permalink
doc: Update r.md (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchen5 committed Apr 9, 2024
1 parent 93d7602 commit 99e41b2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/r.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,17 @@ class(iris)
# 查找对象所属的类
```

### 使用库
### 下载和使用库

```r
install.packages('dplyr')
# 从 CRAN 下载并安装软件包
install.packages(“BiocManager”)
library(BiocManager)
BiocManager::install("dplyr")
# 使用Bioconductor的BiocManager包下载并安装软件包
devtools::install_github("clusterProfiler")
# 直接从github中下载并安装软件包
library(dplyr)
# 将包加载到会话中,使所有其功能可供使用
dplyr::select
Expand Down

0 comments on commit 99e41b2

Please sign in to comment.