Bonnie Gu
Bonnie Gu

Reputation: 51

Can't load the r package 'arulesViz' because no package called 'viridis'

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

Answers (3)

Bonnie Gu
Bonnie Gu

Reputation: 51

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

Upvotes: 1

user3072843
user3072843

Reputation: 298

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

library("devtools")
install_github("mhahsler/arulesViz")

Upvotes: 1

Taher A. Ghaleb
Taher A. Ghaleb

Reputation: 5240

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

install.packages("arulesViz", dependencies = TRUE)

Upvotes: 2

Related Questions