massimoaria / bibliometrix

An R-tool for comprehensive science mapping analysis. A package for quantitative research in scientometrics and bibliometrics.
https://www.bibliometrix.org
Other
510 stars 149 forks source link

object 'net' not found when using networkPlot() function #81

Closed jooyoungseo closed 4 years ago

jooyoungseo commented 4 years ago

The current development version throws an error when using networkPlot() function.

The minimal code can be reproduced as follows:

library(bibliometrix)
#> To cite bibliometrix in publications, please use:
#> 
#> Aria, M. & Cuccurullo, C. (2017) bibliometrix: An R-tool for comprehensive science mapping analysis, Journal of Informetrics, 11(4), pp 959-975, Elsevier.
#>                         
#> 
#> http:\\www.bibliometrix.org
#> 
#>                         
#> To start with the shiny web-interface, please digit:
#> biblioshiny()

data(management)

NetMatrix <- biblioNetwork(management, analysis = "co-occurrences", 
network = "keywords", sep = ";")

net <- networkPlot(NetMatrix, n = 30, type = "auto", Title = "Co-occurrence Network",labelsize=1) 
#> Error in networkPlot(NetMatrix, n = 30, type = "auto", Title = "Co-occurrence Network", : object 'net' not found

Created on 2019-11-13 by the reprex package (v0.3.0.9001)

Session info ``` r sessioninfo::session_info() #> - Session info --------------------------------------------------------------- #> setting value #> version R version 3.6.1 (2019-07-05) #> os Windows 10 x64 #> system x86_64, mingw32 #> ui RTerm #> language (EN) #> collate English_United States.1252 #> ctype English_United States.1252 #> tz America/New_York #> date 2019-11-13 #> #> - Packages ------------------------------------------------------------------- #> package * version date lib #> assertthat 0.2.1 2019-03-21 [1] #> backports 1.1.5 2019-10-02 [1] #> bibliometrix * 2.3.1 2019-11-12 [1] #> cellranger 1.1.0 2016-07-27 [1] #> cli 1.1.0 2019-03-19 [1] #> cluster 2.1.0 2019-06-19 [1] #> colorspace 1.4-1 2019-03-18 [1] #> crayon 1.3.4 2017-09-16 [1] #> curl 4.2 2019-09-24 [1] #> data.table 1.12.7 2019-11-08 [1] #> digest 0.6.22 2019-10-21 [1] #> dplyr 0.8.3.9000 2019-11-08 [1] #> DT 0.9 2019-09-17 [1] #> evaluate 0.14 2019-05-28 [1] #> factoextra 1.0.5 2017-08-22 [1] #> FactoMineR 1.42 2019-07-03 [1] #> farver 1.1.0 2018-11-20 [1] #> fastmap 1.0.1 2019-10-08 [1] #> flashClust 1.01-2 2012-08-21 [1] #> forcats 0.4.0 2019-02-17 [1] #> foreign 0.8-72 2019-08-02 [1] #> fs 1.3.1 2019-05-06 [1] #> ggforce 0.3.1 2019-08-20 [1] #> ggplot2 3.2.1.9000 2019-11-08 [1] #> ggraph 2.0.0.9000 2019-10-03 [1] #> ggrepel 0.8.1 2019-05-07 [1] #> glue 1.3.1.9000 2019-11-08 [1] #> graphlayouts 0.5.0.9000 2019-09-02 [1] #> gridExtra 2.3 2017-09-09 [1] #> gtable 0.3.0 2019-03-25 [1] #> haven 2.2.0.9000 2019-11-08 [1] #> highr 0.8 2019-03-20 [1] #> hms 0.5.2 2019-10-30 [1] #> htmltools 0.4.0 2019-10-04 [1] #> htmlwidgets 1.5.1.9000 2019-11-08 [1] #> httpuv 1.5.2 2019-09-11 [1] #> httr 1.4.1 2019-08-05 [1] #> igraph 1.2.4.1 2019-04-22 [1] #> jsonlite 1.6 2018-12-07 [1] #> knitr 1.26.1 2019-11-13 [1] #> later 1.0.0 2019-10-04 [1] #> lattice 0.20-38 2018-11-04 [1] #> leaps 3.0 2017-01-10 [1] #> lifecycle 0.1.0 2019-08-01 [1] #> magrittr 1.5 2014-11-22 [1] #> MASS 7.3-51.4 2019-03-31 [1] #> Matrix 1.2-17 2019-03-22 [1] #> mime 0.7 2019-06-11 [1] #> munsell 0.5.0 2018-06-12 [1] #> networkD3 0.4 2017-03-18 [1] #> openxlsx 4.1.3 2019-11-07 [1] #> pillar 1.4.2 2019-06-29 [1] #> pkgconfig 2.0.3 2019-09-22 [1] #> plyr 1.8.4 2016-06-08 [1] #> polyclip 1.10-0 2019-03-14 [1] #> promises 1.1.0 2019-10-04 [1] #> purrr 0.3.3.9000 2019-11-12 [1] #> R6 2.4.1 2019-11-12 [1] #> RColorBrewer 1.1-2 2014-12-07 [1] #> Rcpp 1.0.3.1 2019-11-13 [1] #> readxl 1.3.1.9000 2019-11-07 [1] #> reprex 0.3.0.9001 2019-11-13 [1] #> reshape2 1.4.3 2017-12-11 [1] #> rio 0.5.16 2018-11-26 [1] #> RISmed 2.1.7 2017-06-06 [1] #> rlang 0.4.1.9000 2019-11-12 [1] #> rmarkdown 1.16.4 2019-11-11 [1] #> rscopus 0.6.6 2019-09-17 [1] #> scales 1.0.0 2018-08-09 [1] #> scatterplot3d 0.3-41 2018-03-14 [1] #> sessioninfo 1.1.1 2018-11-05 [1] #> shiny 1.4.0 2019-10-10 [1] #> shinycssloaders 0.2.0 2017-05-12 [1] #> shinythemes 1.1.2 2018-11-06 [1] #> SnowballC 0.6.0 2019-01-15 [1] #> stringdist 0.9.5.5 2019-10-21 [1] #> stringi 1.4.3 2019-03-12 [1] #> stringr 1.4.0.9000 2019-11-11 [1] #> styler 1.2.0.9000 2019-11-13 [1] #> tibble 2.1.3 2019-06-06 [1] #> tidygraph 1.1.2.9999 2019-10-03 [1] #> tidyr 1.0.0.9000 2019-10-14 [1] #> tidyselect 0.2.5.9000 2019-11-13 [1] #> tweenr 1.0.1 2018-12-14 [1] #> vctrs 0.2.0.9007 2019-11-13 [1] #> viridis 0.5.1 2018-03-29 [1] #> viridisLite 0.3.0 2018-02-01 [1] #> withr 2.1.2 2018-03-15 [1] #> xfun 0.11.1 2019-11-12 [1] #> xtable 1.8-4 2019-04-21 [1] #> yaml 2.2.0 2018-07-25 [1] #> zeallot 0.1.0 2018-01-28 [1] #> zip 2.0.4 2019-09-01 [1] #> source #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> Github (massimoaria/bibliometrix@7b2f764) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> Github (Rdatatable/data.table@412a781) #> CRAN (R 3.6.1) #> Github (hadley/dplyr@b357f06) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> Github (hadley/ggplot2@e58be03) #> Github (thomasp85/ggraph@0e86312) #> CRAN (R 3.6.1) #> Github (tidyverse/glue@f8dc26f) #> Github (schochastics/graphlayouts@6a21d81) #> CRAN (R 3.6.0) #> CRAN (R 3.6.1) #> Github (tidyverse/haven@690f9d7) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> Github (ramnathv/htmlwidgets@b357323) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> Github (yihui/knitr@bf98f2a) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.1) #> Github (hadley/purrr@0168a59) #> CRAN (R 3.6.1) #> CRAN (R 3.6.0) #> Github (RcppCore/Rcpp@8580d28) #> Github (hadley/readxl@43cf0eb) #> Github (tidyverse/reprex@27aa69a) #> CRAN (R 3.6.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> Github (r-lib/rlang@5a0b80a) #> Github (rstudio/rmarkdown@1f63943) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.6.1) #> CRAN (R 3.6.0) #> Github (hadley/stringr@80aaaac) #> Github (r-lib/styler@a8acde5) #> CRAN (R 3.6.1) #> Github (thomasp85/tidygraph@d0cdea0) #> Github (hadley/tidyr@db1478d) #> Github (tidyverse/tidyselect@c68745b) #> CRAN (R 3.6.0) #> Github (r-lib/vctrs@8844ec8) #> CRAN (R 3.6.0) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> Github (yihui/xfun@ef9908c) #> CRAN (R 3.6.0) #> CRAN (R 3.6.0) #> CRAN (R 3.6.1) #> CRAN (R 3.6.1) #> #> [1] C:/Program Files/R/R-3.6.1/library ```
massimoaria commented 4 years ago

Solved