在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