Then Install BioConductor PackagesRight now, the easiest way to install BioConductor packages is using the biocLite.R installation script. Here's how to use it:
In an R command window, type the following:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
source(">
將包下載下來,在命令列下:
>R CMD INSTALL -l 你要安裝的目錄 *.gz(你的包的)
我的方法是:
把包下載到本地
>install.packages("package_path",repos=NULL)
Commands:
INSTALL Install add-on packages
Please use 'R CMD command --help' to obtain further information about
the usage of 'command'.
建議還是用這個穩妥些。
source("http://www.bioconductor.org/biocLite.R")
biocLite(c("pkg1", "pkg2"))
#Where "pkg1" and "pkg2" are the names of the packages you would like to install.
因為R package涉及到R本身版本高低,已安裝的依賴包的版本的高低,辛苦
down下來包包可能根本不匹配,也就用不了。biocLite指令碼能夠自動處理這些,保證安裝的package可用。
R CMD是很cool的命令。但犯linux的通病,複雜的依賴關係。
而biocLite就非常像FC6 linux下的yum,只要網路好,這種安裝無疑是省體力的。