Skip to content

Commit dab468c

Browse files
authored
Merge pull request #407 from massimoaria/develop
CRAN Release 4.1.4
2 parents 26bc46c + 67d3205 commit dab468c

21 files changed

+57
-37
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ Rubbish
2222
^inst/biblioshiny/rsconnect
2323
^rsconnect
2424

25+
^CRAN-SUBMISSION$
26+
^cran-comments\.md$

NAMESPACE

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ importFrom(Matrix,Matrix)
8181
importFrom(Matrix,MatrixClass)
8282
importFrom(Matrix,Ops)
8383
importFrom(Matrix,Summary)
84-
importFrom(Matrix,T2graph)
8584
importFrom(Matrix,abIseq)
8685
importFrom(Matrix,abIseq1)
8786
importFrom(Matrix,all.equal)
@@ -115,7 +114,6 @@ importFrom(Matrix,forceSymmetric)
115114
importFrom(Matrix,format)
116115
importFrom(Matrix,formatSpMatrix)
117116
importFrom(Matrix,formatSparseM)
118-
importFrom(Matrix,graph2T)
119117
importFrom(Matrix,head)
120118
importFrom(Matrix,image)
121119
importFrom(Matrix,invPerm)
@@ -186,15 +184,18 @@ importFrom(dplyr,bind_rows)
186184
importFrom(dplyr,count)
187185
importFrom(dplyr,cummean)
188186
importFrom(dplyr,desc)
187+
importFrom(dplyr,distinct)
189188
importFrom(dplyr,do)
190189
importFrom(dplyr,group_by)
191190
importFrom(dplyr,if_all)
192191
importFrom(dplyr,inner_join)
192+
importFrom(dplyr,join_by)
193193
importFrom(dplyr,left_join)
194194
importFrom(dplyr,mutate)
195195
importFrom(dplyr,mutate_at)
196196
importFrom(dplyr,mutate_if)
197197
importFrom(dplyr,n)
198+
importFrom(dplyr,reframe)
198199
importFrom(dplyr,relocate)
199200
importFrom(dplyr,rename)
200201
importFrom(dplyr,rename_with)

NEWS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
bibliometrix v4.1.4 (Release date: )
1+
bibliometrix v4.1.4 (Release date: 2023-11-29)
22

33
Changes:
4+
* Biblioshiny: After the data quality check, the menus of the analyses that cannot be performed are hidden
45
* Start to adding support to OpenAlex data
56
* Improvements in historiograph:
67
- Improved Scopus algorithm to match local citations
78
- Added OpenAlex algorithm to match local citations
89
- Added Lens.org algorithm to match local citations
910
* Improved pajek export in biblioshiny
1011
* Computational speed improvements
12+
* Solved issue with igraph 1.6.0 release canddate
13+
* Solved issue with Matrix package
1114

1215
bibliometrix v4.1.2 (Release date: 2023-03-06)
1316

R/Hindex.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Hindex <- function(M, field="author", elements=NULL, sep = ";",years=Inf){
8585

8686
H <- df %>%
8787
group_by(.data$AUs) %>%
88-
summarize(#Element = .data$AUs[1],
88+
reframe(#Element = .data$AUs[1],
8989
h_index = h_calc(.data$TC),
9090
g_index = g_calc(.data$TC),
9191
PY_start = min(.data$PY),

R/couplingMap.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#' @param impact.measure is a character. It indicates the impact measure used to rank cluster elements (documents, authors or sources).
2323
#' It can be \code{impact.measure = c("local", "global")}.\\
2424
#' With \code{impact.measure = "local"}, \link{couplingMap} calculates elements impact using the Normalized Local Citation Score while
25-
#' using code{impact.measure = "global"}, the function uses the Normalized Global Citation Score to measure elements impact.
25+
#' using \code{impact.measure = "global"}, the function uses the Normalized Global Citation Score to measure elements impact.
2626
#' @param minfreq is a integer. It indicates the minimum frequency (per thousand) of a cluster. It is a number in the range (0,1000).
2727
#' @param community.repulsion is a real. It indicates the repulsion force among network communities. It is a real number between 0 and 1. Default is \code{community.repulsion = 0.1}.
2828
#' @param stemming is logical. If it is TRUE the word (from titles or abstracts) will be stemmed (using the Porter's algorithm).

R/csvScopus2df.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ csvScopus2df <- function(file){
2929
DATA$AU=gsub("\\.", "", DATA$AU)
3030
DATA$AU=gsub(",", ";", DATA$AU)
3131

32+
### store raw affiliation format to extract link among authors and affiliations
33+
DATA$C1raw <- DATA$C1
34+
###
35+
3236
# Affiliation
3337
if (!("C1" %in% names(DATA))){DATA$C1 <- NA}else{
3438
DATA$C1 <- unlist(lapply(strsplit(DATA$C1,";"), function(l){

R/histNetwork.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ scopus <- function(M, min.citations, sep, network, verbose){
324324
dplyr::filter(.data$toRemove != TRUE)
325325

326326
LCS <- CR %>%
327-
group_by(SR_cited) %>%
327+
group_by(.data$SR_cited) %>%
328328
count(name="LCS")
329329

330330

@@ -353,7 +353,7 @@ scopus <- function(M, min.citations, sep, network, verbose){
353353
CRadd <- data.frame(SR_citing=unique(M$SR), SR_cited=unique(M$SR), value=1)
354354

355355
WLCR <- CR %>%
356-
select(SR_citing, SR_cited) %>%
356+
select(.data$SR_citing, .data$SR_cited) %>%
357357
mutate(value = 1) %>%
358358
bind_rows(CRadd) %>%
359359
distinct() %>%

R/isi2df.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ Please, take a look at the vignettes:
6464
df <- cbind(df1,df2)
6565
rm(df1,df2)
6666

67+
### store raw affiliation format to extract link among authors and affiliations
68+
df$C1raw <- df$C1
69+
###
70+
6771
df$DB <- "ISI"
6872

6973
# Authors

R/normalizeCItationScore.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#' @param impact.measure is a character. It indicates the impact measure used to rank cluster elements (documents, authors or sources).
1919
#' It can be \code{impact.measure = c("local", "global")}.\\
2020
#' With \code{impact.measure = "local"}, \link{normalizeCitationScore} calculates elements impact using the Normalized Local Citation Score while
21-
#' using code{impact.measure = "global"}, the function uses the Normalized Global Citation Score to measure elements impact.
21+
#' using \code{impact.measure = "global"}, the function uses the Normalized Global Citation Score to measure elements impact.
2222
#' @return a dataframe.
2323
#'
2424
#'

R/zzz.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
## @importFrom dplyr filter
2626
#' @importFrom dplyr arrange
2727
#' @importFrom dplyr do
28+
#' @importFrom dplyr distinct
29+
#' @importFrom dplyr join_by
2830
#' @importFrom dplyr n
2931
#' @importFrom dplyr slice
3032
#' @importFrom dplyr slice_max
@@ -53,6 +55,7 @@
5355
#' @importFrom dplyr relocate
5456
#' @importFrom dplyr slice_head
5557
#' @importFrom dplyr slice_tail
58+
#' @importFrom dplyr reframe
5659
#' @importFrom plotly add_annotations
5760
#' @importFrom plotly add_lines
5861
#' @importFrom plotly config
@@ -196,7 +199,6 @@
196199
#' @importFrom Matrix format
197200
#' @importFrom Matrix formatSparseM
198201
#' @importFrom Matrix formatSpMatrix
199-
#' @importFrom Matrix graph2T
200202
#' @importFrom Matrix head
201203
#' @importFrom Matrix image
202204
#' @importFrom Matrix invPerm
@@ -250,7 +252,6 @@
250252
#' @importFrom Matrix Summary
251253
#' @importFrom Matrix symmpart
252254
#' @importFrom Matrix t
253-
#' @importFrom Matrix T2graph
254255
#' @importFrom Matrix tail
255256
#' @importFrom Matrix tcrossprod
256257
#' @importFrom Matrix tril

README.md

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -120,23 +120,23 @@ Load `bibliometrix`
120120

121121
``` r
122122
library('bibliometrix')
123-
#> To cite bibliometrix in publications, please use:
123+
#> Please note that our software is open source and available for use, distributed under the MIT license.
124+
#> When it is used in a publication, we ask that authors properly cite the following reference:
124125
#>
125126
#> Aria, M. & Cuccurullo, C. (2017) bibliometrix: An R-tool for comprehensive science mapping analysis,
126-
#> Journal of Informetrics, 11(4), pp 959-975, Elsevier.
127-
#>
128-
#>
129-
#> https://www.bibliometrix.org
127+
#> Journal of Informetrics, 11(4), pp 959-975, Elsevier.
130128
#>
129+
#> Failure to properly cite the software is considered a violation of the license.
131130
#>
132131
#> For information and bug reports:
132+
#> - Take a look at https://www.bibliometrix.org
133133
#> - Send an email to [email protected]
134134
#> - Write a post on https://github.com/massimoaria/bibliometrix/issues
135135
#>
136-
#> Help us to keep Bibliometrix free to download and use by contributing with a small donation to support our research team (https://bibliometrix.org/donate.html)
136+
#> Help us to keep Bibliometrix and Biblioshiny free to download and use by contributing with a small donation to support our research team (https://bibliometrix.org/donate.html)
137137
#>
138138
#>
139-
#> To start with the shiny web-interface, please digit:
139+
#> To start with the Biblioshiny app, please digit:
140140
#> biblioshiny()
141141
```
142142

@@ -197,23 +197,22 @@ The argument *M* is a bibliographic data frame obtained by
197197
com <- missingData(M)
198198

199199
com$mandatoryTags
200-
#> tag description missing_counts missing_pct status
201-
#> 1 AU Author 0 0.00 Excellent
202-
#> 2 DT Document Type 0 0.00 Excellent
203-
#> 3 SO Journal 0 0.00 Excellent
204-
#> 4 LA Language 0 0.00 Excellent
205-
#> 5 NR Number of Cited References 0 0.00 Excellent
206-
#> 6 WC Science Categories 0 0.00 Excellent
207-
#> 7 TI Title 0 0.00 Excellent
208-
#> 8 TC Total Citation 0 0.00 Excellent
209-
#> 9 CR Cited References 2 0.22 Good
210-
#> 10 AB Abstract 7 0.78 Good
211-
#> 11 PY Publication Year 9 1.00 Good
212-
#> 12 RP Corresponding Author 10 1.11 Good
213-
#> 13 C1 Affiliation 21 2.34 Good
214-
#> 14 DI DOI 36 4.01 Good
215-
#> 15 DE Keywords 79 8.80 Good
216-
#> 16 ID Keywords Plus 97 10.80 Acceptable
200+
#> tag description missing_counts missing_pct status
201+
#> 1 AU Author 0 0.00 Excellent
202+
#> 2 DT Document Type 0 0.00 Excellent
203+
#> 3 SO Journal 0 0.00 Excellent
204+
#> 4 LA Language 0 0.00 Excellent
205+
#> 5 WC Science Categories 0 0.00 Excellent
206+
#> 6 TI Title 0 0.00 Excellent
207+
#> 7 TC Total Citation 0 0.00 Excellent
208+
#> 8 CR Cited References 2 0.22 Good
209+
#> 9 AB Abstract 7 0.78 Good
210+
#> 10 PY Publication Year 9 1.00 Good
211+
#> 11 RP Corresponding Author 10 1.11 Good
212+
#> 12 C1 Affiliation 21 2.34 Good
213+
#> 13 DI DOI 36 4.01 Good
214+
#> 14 DE Keywords 79 8.80 Good
215+
#> 15 ID Keywords Plus 97 10.80 Acceptable
217216
```
218217

219218
**missingData** returns a list containing two data frame. The first one,

inst/biblioshiny/libraries.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ libraries <- function(){
2020
if (!require(RCurl, quietly=TRUE)){install.packages("RCurl")}
2121
if (!require(openxlsx, quietly=TRUE)){install.packages("openxlsx"); require(openxlsx, quietly=TRUE)}
2222
if (!require(shinyWidgets, quietly=TRUE)){install.packages("shinyWidgets"); require(shinyWidgets, quietly=TRUE)}
23+
24+
## Currently "webshot2" 0.1.1 generates empty screenshots on windows 10 for graphics created with visnetwork.
25+
## This workaround installs the previous version 0.1.0 to temporarily fix the problem.
2326
if (!require(webshot2,quietly=TRUE)){
2427
install.packages("https://cran.r-project.org/src/contrib/Archive/webshot2/webshot2_0.1.0.tar.gz", repos = NULL, type = "source")
2528
}else{
@@ -30,11 +33,14 @@ libraries <- function(){
3033
install.packages("https://cran.r-project.org/src/contrib/Archive/webshot2/webshot2_0.1.0.tar.gz", repos = NULL, type = "source")
3134
}
3235
}
36+
##
37+
3338
if (!(require(chromote, quietly=TRUE))){install.packages("chromote"); require(chromote, quietly=TRUE)}
3439

3540
### workaround for webshot2 on shinyapps.io
3641
if (!(require(curl, quietly=TRUE))){install.packages("curl"); require(curl, quietly=TRUE)}
3742
if (!(require(pagedown, quietly=TRUE))){install.packages("pagedown"); require(pagedown, quietly=TRUE)}
43+
##
3844
require(Matrix, quietly = TRUE)
3945
require(dimensionsR, quietly = TRUE)
4046
require(pubmedR, quietly = TRUE)

inst/biblioshiny/server.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ server <- function(input, output,session){
3030
HTML("Chrome or a Chromium-based browser is not installed on your computer.<br>
3131
If you do not have either of these browsers installed, Biblioshiny will be unable to export graphs.<br>
3232
To ensure the functionality of Biblioshiny,
33-
please download Chrome by <a href='https://www.google.com/intl/it_it/chrome/' target='_blank' > <b>clicking here</b></a>."),
33+
please download Chrome by <a href='https://www.google.com/chrome/' target='_blank' > <b>clicking here</b></a>."),
3434
footer = modalButton("Dismiss"),
3535
easyClose = TRUE
3636
))

man/couplingMap.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-59.5 KB
Loading
-59 KB
Loading
-309 KB
Loading
2.08 KB
Loading
Loading
-197 KB
Loading

man/normalizeCitationScore.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)