Set the r image site in the rprofile. Site File
It seems that the official site of R is down, causing errors every time the installation. Packages installation package is installed.
You can set up domestic image sites in the rprofile. Site file.
In Windows, this file is in the c: \ Program Files \ r \ R-2.9.2 \ etc directory (this is my installation location, for reference only)
Modify as follows
# Set a cran mirror
Local ({r <-getoption ("repos ")
R ["cran"] <-"http://cran.csdb.cn /"
Options (repos = r )}
Image sites in China
China
| Http://ftp.ctex.org/mirrors/CRAN/ |
Ctex. org |
| Http://cran.csdb.cn/ |
Computer Network Information Center, Cas, Beijing |
| Http://mirror.bjtu.edu.cn/cran |
Beijing Jiaotong University, Beijing |
| Http://mirrors.ustc.edu.cn/CRAN/ |
University of Science and Technology of China |
| Http://mirrors.xmu.edu.cn/CRAN/ |
Xiamen University |