Reputation: 51
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'?
Upvotes: 4
Views: 6848
Reputation: 51
I have removed all of the packages and installed them again. Then there's no error.
Upvotes: 1
Reputation: 298
I fixed the problem by downloading the latest release from github:
library("devtools")
install_github("mhahsler/arulesViz")
Upvotes: 1
Reputation: 5240
As the comments suggest, you could install the library with dependencies, like this:
install.packages("arulesViz", dependencies = TRUE)
Upvotes: 2