Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in edge.attributes<- #288

Closed
tapj opened this issue Mar 24, 2021 · 1 comment
Closed

Error in edge.attributes<- #288

tapj opened this issue Mar 24, 2021 · 1 comment

Comments

@tapj
Copy link

tapj commented Mar 24, 2021

I have an error with edge attributes (although I made a fresh igraph and ggraph installation). I tried both CRAN and github version.

Here is a R session that failed (on centOS)

> require(tidygraph)
Loading required package: tidygraph

Attaching package: ‘tidygraph’

The following object is masked from ‘package:stats’:

    filter

> require(ggraph)
Loading required package: ggraph
Loading required package: ggplot2
> gr <- create_notable('bull')
> layout <- create_layout(gr, layout = 'igraph', algorithm = 'kk')
Error in `edge.attributes<-`(graph, index = index, value = value) : 
  Value must be a named list with unique names
> sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so

Random number generation:
 RNG:     Mersenne-Twister 
 Normal:  Inversion 
 Sample:  Rounding 
 
locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ggraph_2.0.5.9000 ggplot2_3.3.3     tidygraph_1.2.0  

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.6         pillar_1.5.1       compiler_3.6.0     viridis_0.5.1      tools_3.6.0        digest_0.6.27     
 [7] viridisLite_0.3.0  lifecycle_1.0.0    tibble_3.1.0       gtable_0.3.0       pkgconfig_2.0.3    rlang_0.4.10      
[13] igraph_1.2.6       DBI_1.1.1          ggrepel_0.9.1      gridExtra_2.3      withr_2.4.1        dplyr_1.0.5       
[19] graphlayouts_0.7.1 generics_0.1.0     vctrs_0.3.6        grid_3.6.0         tidyselect_1.1.0   glue_1.4.2        
[25] R6_2.5.0           fansi_0.4.2        polyclip_1.10-0    tidyr_1.1.3        purrr_0.3.4        tweenr_1.0.2      
[31] farver_2.1.0       magrittr_2.0.1     scales_1.1.1       ellipsis_0.3.1     MASS_7.3-53.1      assertthat_0.2.1  
[37] ggforce_0.3.3      colorspace_2.0-0   utf8_1.2.1         munsell_0.5.0      crayon_1.4.1    

For your information, here is a R session that worked well (on windows)

> require(tidygraph)
Le chargement a nécessité le package : tidygraph

Attachement du package : ‘tidygraph’

The following object is masked from ‘package:stats’:

    filter

Warning message:
le package ‘tidygraph’ a été compilé avec la version R 3.6.3 
> require(ggraph)
Le chargement a nécessité le package : ggraph
Le chargement a nécessité le package : ggplot2
Warning messages:
1: le package ‘ggraph’ a été compilé avec la version R 3.6.3 
2: le package ‘ggplot2’ a été compilé avec la version R 3.6.3 
> gr <- create_notable('bull')
> layout <- create_layout(gr, layout = 'igraph', algorithm = 'kk')
> sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)

Matrix products: default

Random number generation:
 RNG:     Mersenne-Twister 
 Normal:  Inversion 
 Sample:  Rounding 
 
locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252
[4] LC_NUMERIC=C                   LC_TIME=French_France.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ggraph_2.0.3    ggplot2_3.3.1   tidygraph_1.2.0

loaded via a namespace (and not attached):
 [1] igraph_1.2.4.2     Rcpp_1.0.4.6       magrittr_1.5       MASS_7.3-51.4      tidyselect_1.1.0   munsell_0.5.0     
 [7] viridisLite_0.3.0  colorspace_1.4-1   R6_2.4.1           rlang_0.4.6        dplyr_1.0.0        tools_3.6.0       
[13] grid_3.6.0         ggforce_0.3.2      gtable_0.3.0       withr_2.1.2        graphlayouts_0.7.0 digest_0.6.23     
[19] tibble_2.1.3       lifecycle_0.2.0    crayon_1.3.4       gridExtra_2.3      farver_2.0.1       tweenr_1.0.1      
[25] purrr_0.3.3        tidyr_1.0.0        viridis_0.5.1      vctrs_0.3.1        ggrepel_0.8.2      glue_1.4.1        
[31] polyclip_1.10-0    compiler_3.6.0     pillar_1.4.2       generics_0.0.2     scales_1.1.0       pkgconfig_2.0.3

@thomasp85
Copy link
Owner

seems to be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants