方法一
options(repos=structure(
c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")))
install.packages(
"包名")
方法二
install.packages
(
"ABC"
,repos=
"http://mirror.bjtu.