没有名为 igraph0 R 的包

No package called igraph0 R

我正在尝试通过 R 使用 "gspan" 算法。我安装并加载了 igraph

但是当我调用 "gspan" 时,我得到这个错误:

>  results = subdue(graph1);
Error in library(igraph0) : there is no package called ‘igraph0’

谁能给我一个解决方案,先谢谢了。

来自the CRAN repo

Package ‘igraph0’ was removed from the CRAN repository.

Formerly available versions can be obtained from the archive.

This was a transitional package from Mar 2012 to Sept 2013. Packages depending on it ought to have changed to igraph long ago.

Consider using package ‘igraph’ instead.

所以这个包在 CRAN 上不再可用。我建议您考虑一下这个建议,改为 igraph

因此,只需将包加载为 library(igraph) 而不是 library(igraph0)。既然你提到你已经安装了 igraph,这应该可以。

igraph0 包已弃用。

或者,您可以从 archives.

中获取 igraph0

搜索此网站可能也会有所帮助。例如,检查这里:Package igraph0 deprecated and hence not able to access gspan package