4

I want to use 'arulesViz' to visualize association rule, but when I load the package, r give me an error:

>library(arulesViz) Error: package or namespace load failed for ‘arulesViz’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘viridis’

I install 'viridis' independently before 'arulesViz' but when I use library(viridis) I still get the same error which said there is no such package.

How can I successfully install 'arulesViz'?

Bonnie Gu
  • 51
  • 1
  • 4

3 Answers3

2

As the comments suggest, you could install the library with dependencies, like this:

install.packages("arulesViz", dependencies = TRUE)
Taher A. Ghaleb
  • 5,120
  • 5
  • 31
  • 44
  • I have removed the previous one I installed and reinstall the package as your suggestion. However, I still get the same error... – Bonnie Gu Feb 03 '18 at 17:41
  • Looks like the problem is with the paths. Can you have a look here: https://www.reddit.com/r/R_Programming/comments/4c7e58/why_can_i_not_load_the_package_arulesviz_no/ – Taher A. Ghaleb Feb 03 '18 at 18:00
1

I have removed all of the packages and installed them again. Then there's no error.

M--
  • 25,431
  • 8
  • 61
  • 93
Bonnie Gu
  • 51
  • 1
  • 4
1

I fixed the problem by downloading the latest release from github:

library("devtools")
install_github("mhahsler/arulesViz")
user3072843
  • 308
  • 3
  • 13