“汽车”包的网址已过时

时间:2014-08-18 13:48:59

标签: r package r-mosaic

我试图在统计侦探here中跟随我自己对机器学习的工作进行一些回归分析,但是在安装"马赛克"包装需要"汽车"包。所以我做了install.packages(car)但我看到网址R试图打开

http://cran.rstudio.com/bin/windows/contrib/3.1/ car_2.0-20.zip

但是,正确的网址(如here所示)是

http://cran.r-project.org/bin/windows/contrib/3.1/ car_2.0-21.zip

如何让R打开自定义网址并安装此软件包?

1 个答案:

答案 0 :(得分:1)

我只看了update.packages(),并且car包的更新。

> update.packages()
#  ...
# car :
#  Version 2.0-20 installed in /home/richard/R/x86_64-pc-linux-gnu-library/3.1 
#  Version 2.0-21 available at http://cran.rstudio.com
Update (y/N/c)?  

输入y,相关的URL会显示在下载消息

Update (y/N/c)?  y
# trying URL 'http://cran.rstudio.com/src/contrib/car_2.0-21.tar.gz'
# Content type 'application/x-gzip' length 584149 bytes (570 Kb)
# opened URL
# ==================================================
# downloaded 570 Kb

所以我可能先安装car,然后尝试mosaic