#R-3.3.1,失败,因为最后安装强制要求了R的高版本
#镜像选择0-cloud
#install.packages("installr")
#library(installr)
#用于将之前的R包迁移到新的R中
#copy.packages.between.libraries(from="D:/R/R-3.3.1/library",to="D:/R/R-3.5.2/library",ask=T,keep_old=T,do_NOT_override_packages_in_new_R=T)
#install.packages("rlang")
#install.packages("debugme")
#install.packages("git2r")
#install.packages("devtools")
#若报ERROR: dependency 'pkgload' is not available for package 'devtools',则手动下载pkgload进行安装
#报地址https://cran.r-project.org/bin/windows/contrib/3.6/pkgload_1.0.2.zip
#包介绍地址https://cran.r-project.org/web/packages/pkgload/index.html
#install_github("GuangchuangYu/enrichplot") ===>要求R大于3.5.1
#install_github("GuangchuangYu/clusterProfiler") ====>要求R大于3.4
#R版本必须是3.5.1以上
install.packages("devtools")
library(devtools)
#需要安装Rtools,网址:https://cran.r-project.org/bin/windows/Rtools/
install_github("GuangchuangYu/enrichplot")
install_github("GuangchuangYu/clusterProfiler")