简体   繁体   English

无法加载 r 包“arulesViz”,因为没有名为“viridis”的包

[英]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:我想使用'arulesViz'来可视化关联规则,但是当我加载包时,r给我一个错误:

>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.我在 'arulesViz' 之前独立安装了 'viridis',但是当我使用library(viridis)我仍然遇到同样的错误,说没有这样的包。

How can I successfully install 'arulesViz'?如何成功安装“arulesViz”?

正如评论所暗示的那样,您可以安装带有依赖项的库,如下所示:

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

I have removed all of the packages and installed them again.我已经删除了所有软件包并重新安装了它们。 Then there's no error.那么就没有错误了。

I fixed the problem by downloading the latest release from github:我通过从 github 下载最新版本解决了这个问题:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM