I have downloaded the latest version of "bibliometrix" package from this GitHub repo.
It seems like there is an error in Hindex() function. It fails even when example code is invoked.
Please refer to the following reproducible code created by reprex package.
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()
example(Hindex)
#>
#> Hindex> ### EXAMPLE 1: ###
#> Hindex>
#> Hindex> data(scientometrics)
#>
#> Hindex> authors <- c("SMALL H", "CHEN DZ")
#>
#> Hindex> Hindex(scientometrics, field = "author", elements = authors, sep = ";")$H
#> Error in data.frame(Element = elements, h_index = 0, g_index = 0, m_index = 0, : arguments imply differing number of rows: 0, 1
Created on 2019-01-17 by the reprex package (v0.2.1.9000)
Hello,
I have downloaded the latest version of "bibliometrix" package from this GitHub repo. It seems like there is an error in
Hindex()
function. It fails even when example code is invoked. Please refer to the following reproducible code created byreprex
package.Created on 2019-01-17 by the reprex package (v0.2.1.9000)
Session info
``` r devtools::session_info() #> - Session info ---------------------------------------------------------- #> setting value #> version R version 3.5.2 (2018-12-20) #> 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-01-17 #> #> - Packages -------------------------------------------------------------- #> package * version date lib #> assertthat 0.2.0 2017-04-11 [1] #> backports 1.1.3 2018-12-14 [1] #> bibliometrix * 2.1.1 2019-01-17 [1] #> callr 3.1.1 2018-12-21 [1] #> cli 1.0.1 2018-09-25 [1] #> cluster 2.0.7-1 2018-04-13 [1] #> colorspace 1.4-0 2019-01-13 [1] #> crayon 1.3.4 2017-09-16 [1] #> desc 1.2.0 2018-05-01 [1] #> devtools 2.0.1.9000 2019-01-12 [1] #> digest 0.6.18 2018-10-10 [1] #> dplyr 0.8.0 2019-01-17 [1] #> DT 0.5 2018-11-05 [1] #> evaluate 0.12 2018-10-09 [1] #> factoextra 1.0.5 2017-08-22 [1] #> FactoMineR 1.41 2018-05-04 [1] #> farver 1.1.0 2018-12-31 [1] #> flashClust 1.01-2 2012-08-21 [1] #> fs 1.2.6 2018-08-23 [1] #> ggforce 0.1.3 2018-07-07 [1] #> ggplot2 3.1.0.9000 2019-01-09 [1] #> ggraph 1.0.2 2018-07-07 [1] #> ggrepel 0.8.0 2018-05-09 [1] #> glue 1.3.0.9000 2019-01-05 [1] #> gridExtra 2.3 2017-09-09 [1] #> gtable 0.2.0 2016-02-26 [1] #> highr 0.7 2018-06-09 [1] #> htmltools 0.3.6 2017-04-28 [1] #> htmlwidgets 1.3 2018-12-31 [1] #> httpuv 1.4.5.9002 2019-01-12 [1] #> httr 1.4.0 2018-12-11 [1] #> igraph 1.2.2 2018-07-27 [1] #> knitr 1.21.6 2019-01-12 [1] #> later 0.7.5.9001 2019-01-12 [1] #> lattice 0.20-38 2018-11-04 [1] #> lazyeval 0.2.1 2017-10-29 [1] #> leaps 3.0 2017-01-10 [1] #> magrittr 1.5 2014-11-22 [1] #> MASS 7.3-51.1 2018-11-01 [1] #> Matrix 1.2-15 2018-11-01 [1] #> memoise 1.1.0 2017-04-21 [1] #> mime 0.6 2018-10-05 [1] #> munsell 0.5.0 2018-06-12 [1] #> networkD3 0.4 2017-03-18 [1] #> pillar 1.3.1 2018-12-15 [1] #> pkgbuild 1.0.2.9000 2018-12-31 [1] #> pkgconfig 2.0.2 2018-08-16 [1] #> pkgload 1.0.2 2018-10-29 [1] #> plyr 1.8.4 2016-06-08 [1] #> prettyunits 1.0.2 2015-07-13 [1] #> processx 3.2.1 2018-12-05 [1] #> promises 1.0.1 2018-04-13 [1] #> ps 1.3.0.9000 2018-12-30 [1] #> purrr 0.2.99.9000 2019-01-12 [1] #> R6 2.3.0 2018-10-04 [1] #> RColorBrewer 1.1-2 2014-12-07 [1] #> Rcpp 1.0.0.1 2019-01-05 [1] #> remotes 2.0.2.9000 2018-12-31 [1] #> RISmed 2.1.7 2017-06-06 [1] #> rlang 0.3.1.9000 2019-01-12 [1] #> rmarkdown 1.11.3 2019-01-12 [1] #> rprojroot 1.3-2 2018-01-03 [1] #> rscopus 0.6.3 2018-11-19 [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.2.0.9001 2019-01-12 [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.1 2018-06-08 [1] #> stringi 1.2.4 2018-07-20 [1] #> stringr 1.3.1.9000 2019-01-09 [1] #> testthat 2.0.1 2018-10-13 [1] #> tibble 2.0.99.9000 2019-01-14 [1] #> tidyr 0.8.2.9000 2019-01-05 [1] #> tidyselect 0.2.5.9000 2019-01-05 [1] #> tweenr 1.0.1 2018-12-14 [1] #> units 0.6-2 2018-12-05 [1] #> usethis 1.4.0.9000 2018-12-30 [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.4 2018-10-23 [1] #> xtable 1.8-3 2018-08-29 [1] #> yaml 2.2.0 2018-07-25 [1] #> source #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (massimoaria/bibliometrix@ca98549) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (r-lib/devtools@bcdde39) #> CRAN (R 3.5.2) #> Github (hadley/dplyr@9aa5846) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (thomasp85/farver@882bb92) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (hadley/ggplot2@9eae13b) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (tidyverse/glue@3f7012c) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (ramnathv/htmlwidgets@5db27ad) #> Github (rstudio/httpuv@14f0b97) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (yihui/knitr@2814058) #> Github (r-lib/later@7dc879a) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (r-lib/pkgbuild@6e4ebdf) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (r-lib/ps@7d17711) #> Github (hadley/purrr@57dd213) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (RcppCore/Rcpp@0c9f683) #> Github (r-lib/remotes@a0d6cd5) #> CRAN (R 3.5.0) #> Github (r-lib/rlang@923c789) #> Github (rstudio/rmarkdown@170d048) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (rstudio/shiny@8ae31eb) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (hadley/stringr@cec6a66) #> CRAN (R 3.5.2) #> Github (hadley/tibble@5a6e727) #> Github (hadley/tidyr@503fe85) #> Github (tidyverse/tidyselect@19150c0) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> Github (r-lib/usethis@85bf30a) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> CRAN (R 3.5.2) #> #> [1] C:/Program Files/R/R-3.5.2/library ```