packages installation for arules in R

useR picture useR · Feb 28, 2014 · Viewed 11.5k times · Source

I have the same problem with previous post by another user How to upload arules package in R

i am using R version 3.0.2 (32-bit)

The error message is like this:

> 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

Is that means the packages no longer available? Plus, is there any other packages for market basket analysis?

Many thanks!

Answer

ali mohammad mohammadi picture ali mohammad mohammadi · Jul 8, 2017

If you want to install "arules" package, you may not be able to install it just using the code below.

<<  install.packages("arules")  >>

Follow the steps:

  1. Go to the package's address and download it manually. You will find it in the link below:

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

  2. If you are using R-Studio just install that package you have got, by "tools" menu in your IDE (R-studio)

    Tools->Install packages->...

    Browse the file in your computer and install it.

  3. Go to the command line and using library(arules) function test the package. If there is still an error it could belong to incompatibility of the package with the version of R (Not R-Studio or any other IDE that you are using), just upgrade R and try installation period again.