Ben,
I believe that the reason for this is that both packages define
functions with the same name and the 'network' package does not have a
NAMESPACE.
A possible workaround is to load the 'igraph' package first, and then
'statnet' (which loads 'network', etc.) next. At least
library(igraph)
library(statnet)
example(network)
works fine. Best,
Gabor
On Mon, Aug 17, 2009 at 9:12 PM, Ben
Mazzotta<benjamin.mazzotta at tufts.edu> wrote:> Dear R users:
>
> There appears to be a conflict between the statnet package and the
> igraph package.
>
> With igraph loaded into memory, the network() function of statnet
> failed, returning the error to the effect that the matrix being
> converted was "not a graph object." Removing igraph from memory
restored
> statnet to proper function.
>
> Apologies if this is redundant. I could not find this documented in the
> help archives or in the docs for either package.
>
> Best,
>
> --
> Ben Mazzotta
> PhD Candidate
> Fletcher School, Tufts University
> 160 Packard Ave, Medford MA 02155
> benjamin.mazzotta at tufts.edu
> +1.617.462.4486
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Gabor Csardi <Gabor.Csardi at unil.ch> UNIL DGM