问题
I'm trying to use "gspan" algorithm using R. I installed and loaded igraph
.
But when I call "gspan", I get this error:
> results = subdue(graph1);
Error in library(igraph0) : there is no package called ‘igraph0’
Could any one give me a solution, thanks in advance.
回答1:
From 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.
So this package is no longer available on the CRAN. I'd urge you to consider the suggestion and move to igraph
instead.
So, just load the package as library(igraph)
instead of library(igraph0)
. Since you mentioned you have already installed igraph
, this should work.
回答2:
igraph0 package is deprecated.
Alternatively, you can get igraph0 from the archives.
And searching through this site may be helpful as well. For instance, check here: Package igraph0 deprecated and hence not able to access gspan package
来源:https://stackoverflow.com/questions/34722245/no-package-called-igraph0-r