在Rstudio中,下载软件install.packages()和 bioconductor软件下载命令spa
source("http://bioconductor.org/biocLite.R") biocLite("包名")
默认的下载地址都在国外,因此通常来讲下载速度十分慢。但其实在国内都有相关的镜像,能够用来下载相关包code
Rstudio直接在Tools-->Global Options-->Packages-->CRAN mirror 选项中选择一个距离你最近的国内镜像就行,如China (Shanghai) [https] - Tongji University。这样之后下载包就都从这个站点下载了blog
下载 bioconductor中的相关软件软件,用下列命令选择一个国内镜像it
source("http://bioconductor.org/biocLite.R") #指定一个离你最近的国内镜像 options(BioC_mirror="http://mirrors.ustc.edu.cn/bioc/") biocLite("包名")
如此一下,下载包就会很快,成功率高,也不会出现用国外网址时出现的一些奇怪错误io
bioconductor一些镜像的网址:https://www.bioconductor.org/about/mirrors/class