输入
options()$repos
install.packages('WGCNA')
install.packages(c("FactoMineR", "factoextra"))
install.packages(c("ggplot2", "pheatmap","ggpubr"))
library("FactoMineR")
library("factoextra")
后出现了
> options()$repos
CRAN
"https://mirrors.sjtug.sjtu.edu.cn/cran/"
attr(,"RStudio")
[1] TRUE
> install.packages('WGCNA')
Warning in install.packages :
没有'‘preprocessCore’'这种相依关系
trying URL 'https://mirrors.sjtug.sjtu.edu.cn/cran/bin/windows/contrib/4.2/WGCNA_1.71.zip'
Content type 'application/zip' length 3257494 bytes (3.1 MB)
downloaded 3.1 MB
程序包‘WGCNA’打开成功,MD5和检查也通过
下载的二进制程序包在
C:\Users\Alyssa\AppData\Local\Temp\RtmpWqSQNn\downloaded_packages里
> install.packages(c("FactoMineR", "factoextra"))
trying URL 'https://mirrors.sjtug.sjtu.edu.cn/cran/bin/windows/contrib/4.2/FactoMineR_2.6.zip'
Content type 'application/zip' length 3802024 bytes (3.6 MB)
downloaded 3.6 MB
trying URL 'https://mirrors.sjtug.sjtu.edu.cn/cran/bin/windows/contrib/4.2/factoextra_1.0.7.zip'
Content type 'application/zip' length 416041 bytes (406 KB)
downloaded 406 KB
程序包‘FactoMineR’打开成功,MD5和检查也通过
程序包‘factoextra’打开成功,MD5和检查也通过
下载的二进制程序包在
C:\Users\Alyssa\AppData\Local\Temp\RtmpWqSQNn\downloaded_packages里
> install.packages(c("ggplot2", "pheatmap","ggpubr"))
trying URL 'https://mirrors.sjtug.sjtu.edu.cn/cran/bin/windows/contrib/4.2/ggplot2_3.3.6.zip'
Content type 'application/zip' length 4122980 bytes (3.9 MB)
downloaded 3.9 MB
trying URL 'https://mirrors.sjtug.sjtu.edu.cn/cran/bin/windows/contrib/4.2/pheatmap_1.0.12.zip'
Content type 'application/zip' length 78915 bytes (77 KB)
downloaded 77 KB
trying URL 'https://mirrors.sjtug.sjtu.edu.cn/cran/bin/windows/contrib/4.2/ggpubr_0.4.0.zip'
Content type 'application/zip' length 1905747 bytes (1.8 MB)
downloaded 1.8 MB
程序包‘ggplot2’打开成功,MD5和检查也通过
程序包‘pheatmap’打开成功,MD5和检查也通过
程序包‘ggpubr’打开成功,MD5和检查也通过
下载的二进制程序包在
C:\Users\Alyssa\AppData\Local\Temp\RtmpWqSQNn\downloaded_packages里
> library("FactoMineR")
> library("factoextra")
载入需要的程辑包:ggplot2
RStudio Community is a great place to get help:
https://community.rstudio.com/c/tidyverse
Welcome! Want to learn more? See two factoextra-related books at https://goo.gl/ve3WBa
>
没细看代码,只看题目,依赖包
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("preprocessCore")