修改安装包的镜像
file.edit(".Rprofile")
options(BioC_mirror="https://mirrors.tuna.tsinghua.edu.cn/bioconductor")
#CRAN
options(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")
修改包的安装地址
file.edit('~/.Renviron')
R_LIBS_USER="~/你的目录" #如果是windows则改为"x:/你的目录"
修改R的版本
Rstudio--> tools --> General