在R中安装arules的软件包

use*_*seR 2 r arules market-basket-analysis

我和其他用户的上一篇文章有同样的问题如何在R中上传arules包

我使用的是R版3.0.2(32位)

错误消息是这样的:

> install.packages("arules")
Installing package into ‘C:/Users/HKGGAIT001/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://cran.ms.unimelb.edu.au/bin/windows/contrib/3.0/arules_1.1-1.zip'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'http://cran.ms.unimelb.edu.au/bin/windows/contrib/3.0/arules_1.1-1.zip'
In addition: Warning message:
In download.file(url, destfile, method, mode = "wb", ...) :
  cannot open: HTTP status was '404 Not Found'
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of package ‘arules’ failed
Run Code Online (Sandbox Code Playgroud)

这意味着包裹不再可用吗?另外,还有其他市场购物篮分析套餐吗?

非常感谢!

小智 5

如果要安装"arules"软件包,可能无法使用下面的代码安装它.

<<  install.packages("arules")  >>
Run Code Online (Sandbox Code Playgroud)

按照步骤:

  1. 转到包的地址并手动下载.您可以在以下链接中找到它:

    https://cran.r-project.org/web/packages/arules/index.html

  2. 如果您正在使用R-Studio,只需通过IDE(R-studio)中的"工具"菜单安装您已获得的软件包

    工具 - >安装包 - > ...

    浏览计算机中的文件并进行安装.

  3. 转到命令行并使用库(arules)函数测试包.如果仍然存在错误,则可能属于软件包与R版本(不是R-Studio或您正在使用的任何其他IDE)的不兼容性,只需升级R并再次尝试安装期.