|
From: | David Robinson |
Subject: | [igraph] Creating graphs: Error in seq_len(no) : argument must be coercible to non-negative integer |
Date: | Thu, 16 Jul 2015 21:13:36 +0000 |
Hi
Subsequent to updating to the latest version of igraph I get the error message:
“Error in seq_len(no) : argument must be coercible to non-negative integer”
when creating an igraph object with certain attribute characteristics (ie many attributes) the error is generated. I have tried to pin down the cause and have failed to do so but does seem to be associated with the number of edge or vertex attributes (80+). Interestingly, changing the method of creating attributes from add.vertices to assigning values directly to the graph (eg V(g)$numeric <- c(1,2,3,4)) alleviates this problem some of the time, but not all the time.
I attempted to create some code to reproduce in toy example but have failed. In short the code worked in previous version and now does not so I am assuming it is a bug. Here is session info.
sessionInfo()
R version 3.2.1 (2015-06-18) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1
locale: [1] LC_COLLATE=English_New Zealand.1252 LC_CTYPE=English_New Zealand.1252 LC_MONETARY=English_New Zealand.1252 [4] LC_NUMERIC=C LC_TIME=English_New Zealand.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] fastcluster_1.1.16 plyr_1.8.3 stringr_0.6.2 igraph_1.0.1
loaded via a namespace (and not attached): [1] magrittr_1.5 tools_3.2.1 Rcpp_0.11.6 stringi_0.5-5 |
[Prev in Thread] | Current Thread | [Next in Thread] |