.libPaths()
remove.packages("package_name")
library()
search()
install.packages("Package Name") # 指定安装来源 install.packages("package_name", repo="http://cran.us.r-project.org")
# 安装Bioconductor的包 source('https://bioconductor.org/biocLite.R') biocLite('BiocInstaller') biocLite(c("RUVSeq","pcaMethods")) # 安装Github的R包 install.packages("devtools") devtools::install_github("JustinaZ/pcaReduce")
# Install the package named "XML" install.packages("E:/XML_3.98-1.3.zip", repos = NULL, type = "source")
library("package Name", lib.loc = "path to library")