Skip to content

bibliometrix 5.6.0

Latest

Choose a tag to compare

@massimoaria massimoaria released this 30 Nov 20:35

New Features

  • Biblioshiny: Bibliographic Coupling is back in the menu: the Clustering by Coupling page had been taken out of the sidebar, so Biblioshiny 5.5.0 offered no bibliographic coupling analysis. A new Coupling menu holds Bibliographic Coupling, the coupling network of documents (by references), authors or sources (biblioNetwork(analysis = "coupling") drawn by networkPlot()), with the layout, clustering, normalisation and graphical options of the other networks. For documents, the node tooltips and the Clusters table show the title, authors and DOI of each paper. The page has a Biblio AI tab and an Info & References tab, and the menu is hidden when the collection has no cited references.
  • thematicEvolution() implements a new and better methodology for the lineage strength between themes, the integrated framework of Aria, D'Aniello, Misuraca & Spano (2026), Rethinking thematic evolution in science mapping: An integrated framework for longitudinal analysis, Journal of Informetrics, 20, 101877 (doi:10.1016/j.joi.2026.101877). Classical thematic evolution detects the themes on a weighted network but links them across periods by the overlap of their keyword lists, where every shared term counts the same. Here the link is measured on the same network that defines the themes: the weighted inclusion index (Inc_Weighted) is now the share of the source theme's PageRank carried by the terms it shares with the target theme, so it is directional, while it used to be the shared occurrences over the smaller theme; the importance index (PageRankIndex) measures how central the shared terms are in both themes; the lineage strength is alpha * Inc_Weighted + (1 - alpha) * PageRankIndex. PageRank is computed within each theme, on the co-occurrence counts among its terms (it was computed on the whole network); on the association strength, which divides every link of a term by its frequency, the most frequent term of a theme, the one naming it, came out among its least central ones, so two themes sharing their label could be left unlinked (on the book collection with cuts at 2004, 2010 and 2015, "citation analysis" was 26th of the 31 terms of its 2011-2015 theme, and its link with "citation analysis" of 2005-2010 was dropped; the evolutionary graphs now keep 8 of the 8 links between themes with the same label instead of 5). This departs from Sect. 3.2 of the paper, which restricts the normalised network; and the themes are the communities of the co-occurrence network normalised by association strength (see the entry on networks below); this changes the themes of thematicMap() too. Terms occurring less than minfreq are now left out before the network is built, as in the paper, instead of after the clustering: under association strength the rarest terms weigh the most, and kept until then they split the themes into many small ones. A link enters the evolutionary graph by dual thresholding: its lineage strength reaches min.lineage (default 0.10), or it is among the top.k (default 2) strongest links leaving its theme; Edges$retained marks these links, and plotThematicEvolution(), plotThematicLayers() and the lineage colours draw only them. thematicEvolution() gains the arguments alpha, min.lineage and top.k (alpha inside assign.evolution.colors, as before, is still accepted), the edges carry their lineage_strength, the nodes their number of incoming and outgoing links and their pattern (emergent, disappearing, continuation, split, merge), and the new element pathways lists the maximal sequences of themes with their strength (the product of the lineage strengths), length and cumulative size. In thematicMap() the membership of a document in each theme uses the PageRank within the theme, a document whose terms all fall outside the themes belongs to every theme with the same degree, and the clusters table gains the fuzzy cardinality of each theme (the sum of the memberships). Every quantity is checked against its definition in the paper by the new tests. Results differ from earlier versions: on the book collection (loadBookDataset(), author keywords, cuts at 2010 and 2016) the three periods give 14, 12 and 7 themes instead of 11, 11 and 6 (17, 23 and 10 without the early filter of rare terms); on management (cuts at 2004 and 2015) 4, 13 and 18 instead of 9, 11 and 9, and the evolutionary graph keeps 31 of the 63 links between themes sharing a term, where every such link used to be drawn. Two errors found on the way are fixed: the inclusion index (Inc_index) and the stability index of a link counted one shared word whatever their number, and two columns of the words table of thematicMap() had swapped names (Cluster_Frequency held the network PageRank, Cluster_PageRank the share of the cluster occurrences); Cluster_PageRank is now the PageRank within the cluster. Biblioshiny: the Thematic Evolution options set alpha, the minimum lineage strength and the number of successors kept per theme; the table reports the importance index, the lineage strength and whether a link is in the evolutionary graph; the cluster tables of the thematic maps report the fuzzy cardinality; the Info & References tabs of Thematic Map and Thematic Evolution describe the method as implemented and cite the published paper.
  • Networks: better normalisation and layout, more stable networks with higher modularity: in networkPlot(), and so in the co-occurrence, co-citation and collaboration networks of Biblioshiny, a normalisation (normalize; Association by default in Biblioshiny) used to drive only the layout, while the communities, their modularity and the PageRank of the nodes were computed on the raw counts, where the most frequent items dominate: the layout grouped the nodes by a similarity that the communities ignored. With a normalisation they are now all computed on the normalised network, as for the themes of Aria et al. (2026), and the layout separates the communities of the network it draws; the edge widths still show the counts. Measured on the keyword co-occurrence and reference co-citation networks of management and the collaboration network of scientometrics, with association strength and Salton, Louvain and Leiden (best of ten runs, as networkPlot() does): the communities have higher or equal modularity on the normalised network in every case (keyword co-occurrence under association strength: 0.31 to 0.36 with Louvain, 0.23 to 0.36 with Leiden), and co-occurrence networks are more stable across seeds (normalised mutual information between the partitions of ten seeds: 0.59 to 0.67 with Louvain, 0.50 to 0.64 with Leiden; with Salton 0.59 to 0.61 and 0.50 to 0.71). Co-citation networks are more stable with Salton (0.91 to 1.00 with Louvain) and slightly less with association strength (0.91 to 0.90 with Louvain, 0.88 to 0.82 with Leiden); collaboration networks, made of nearly separate groups, do not change. Without a normalisation the communities and the layout compare identical() before and after on the three networks with Louvain and Walktrap (their modularity is now the true one, see Bug Fixes). The new argument normalize.clusters = FALSE restores the previous behaviour; couplingMap() uses it, so coupling maps are unchanged.
  • plotThematicLayers() draws a thematic evolution as stacked thematic maps: a new function that draws the thematic maps of the periods of a thematicEvolution() analysis as planes stacked in an oblique view, the oldest at the bottom, as in Fig. 12 of Angelelli et al. (2025, Quality & Quantity, 59, 2753-2798), which was drawn by hand. Each theme sits on its plane at its relevance degree (centrality) and development degree (density), and the themes of adjacent periods that share words are linked, so a theme can be followed as it moves across the quadrants while it merges with or splits from other themes: the sankey diagram of plotThematicEvolution() shows the flows but not the positions, the thematic maps the positions but not the flows. The links of a lineage (assign.evolution.colors), and the themes they join, are drawn in the colour of the lineage; the other links are thin and faint, the other themes grey. Positions are relative to the period (ranks centred on the cross of the quadrants, same scale on every plane) and the size of a theme is its frequency relative to the largest theme of the period. The static version is a ggplot; with interactive = TRUE it is a plotly widget with tooltips (period, quadrant, frequency, the themes a theme comes from and leads to), where a click on a theme keeps the themes it comes from and those it leads to, across all periods, fades the rest and names the selected theme above the plot. min.flow hides the weakest links, as in plotThematicEvolution(). Biblioshiny has a new Layers tab in Thematic Evolution, also in the exported zip, in the report and in the Info & References tab.
  • dominancePlot() draws the authors' dominance ranking: a new function that plots the output of dominance() as a quadrant scatter plot. Each author is placed by productivity (N. of articles) and Dominance Factor, with point size proportional to the multi-authored articles. The median productivity and DF = 0.5 split the authors into prolific leaders, leaders, prolific co-authors and co-authors. Authors that fall on the same point are drawn once, with their names stacked in one label; when two names would overlap, or a name would cover another bubble, only the author with the higher Dominance Factor is named. dominance() now also accepts the bibliographic data frame instead of a biblioAnalysis() result: it needs only the AU field, so on management it takes 0.01 s instead of the 2.1 s of biblioAnalysis(), and both inputs give identical() rankings. Biblioshiny has a new Authors' Dominance page in the Authors menu, with the plot (every name on hover), the table and the Info & References tab.

Bug Fixes and Improvements

  • Biblio AI cites only the documents of the collection: commenting a Thematic Map or a co-occurrence network, Biblio AI could cite publications that are not in the collection. The prompt listed the three most central documents of each cluster by their SR alone (ARIA M, 2017, J INFORMETR) and asked to describe them, so the model filled the missing content from its own memory. The prompt-building helper now sends the title, year and total citations with each SR (a field the collection does not carry is left out), and the response rules gain citation rules: refer only to the documents, authors and sources listed in the data, with their identifier, describe a document only through the fields provided, and do not present other publications as part of the collection. General methodological references (the works introducing a method, indicator or map) may still be cited, as background outside the collection. Tests added.
  • Biblio AI ends its answer with the interpretation: Biblio AI could close with "How would you like to proceed?" or with offers of further analyses, and the panel gives no way to reply. Every Biblio AI prompt now ends with response rules that ask for a contextualized interpretation of the results only, without closing questions, offers of help or suggested next steps, and the role text no longer promises "guidance". Fixed the typo "creted" in the default prompt. Test added.
  • Author names are no longer split by Unicode spaces: exports may carry a no-break space (U+00A0), a narrow no-break space (U+202F), a thin space, a zero-width space (U+200B), a BOM (U+FEFF) or a tab inside a name, which R's regular expressions do not treat as spaces, so "Abu Afifa M." with and without a no-break space were two authors in every author table. convert2df() now replaces every run of space-like characters with one space in all the character columns, for every database, right after reading the records and before the authors, the references and SR are built; mergeDbSources() does the same on its inputs (collections converted with earlier versions) and completeMetadata() on the values it fills. Values with no such character, or with single ASCII spaces only, are unchanged. Tests added (eight spellings of one author become a single author with eight documents, in tableTag() and in biblioAnalysis()).
  • networkPlot(degree = ) counts the co-occurrences of a vertex, not its own frequency: the filter used the igraph degree of the network built from the raw matrix minus the diagonal, but igraph counts a self-loop twice, so the score of a vertex was its co-occurrences with the other vertices plus its own frequency (on the author keywords of a 530-document Scopus collection, "economic growth" has 3 co-occurrences and a frequency of 6: it scored 9 and passed degree = 8). The score is now the off-diagonal row sum of NetMatrix (co-occurrences with multiplicity, also with weighted = TRUE, where the igraph degree counted distinct neighbours), computed before the edges.min pruning and the removal of isolates; n is still ignored when degree is set. The default degree = NULL is unchanged, and Biblioshiny does not use degree. Test added.
  • The Author Profile finds the authors whose surname has a particle, and tries journal articles first: Web of Science joins the particles of a surname (VANRAAN AFJ), OpenAlex keeps them apart ("Anthony F. J. van Raan"), so authorBio(author_name =) stopped with "not found among the OpenAlex authors of this article" on every work of the author. When the surname is not found as it is, it is now compared without spaces with the consecutive words of each OpenAlex name. In Biblioshiny the DOIs tried for the profile put journal articles before proceedings, books and chapters, then follow the DOI order as before. Ordering by year or by citations was tried on Firth McEachern's Scopus collection and on management (top 25 and 30 authors) and dropped: it found the same profiles and, at times, a small profile that OpenAlex had not merged with the author's main one.
  • mergeDbSources() keeps the documents that share a title and year, and joins the copies whose years differ: without a DOI, duplicates had to match on title and exact year. Different documents with the same title and year were removed even when their DOIs differed (errata, case reports), and the copies of a document dated by two databases a year or more apart (the year online and the year of the issue) stayed double: on a sample of 400 PubMed records and the same works from OpenAlex, 112 of the 396 pairs had different years. Records with two different DOIs are no longer joined by title, and across databases two records up to three years apart are joined when they are the only record of each database with that title (of four words or more), share a word of the first author's name and come from the same source (PubMed's "ANATOMICAL RECORD (HOBOKEN, N.J. : 2007)" matches "THE ANATOMICAL RECORD"). On that sample, with the DOIs removed, 22 duplicates are left instead of 122, and with all DOIs 3 instead of 5 (one document with a different DOI was removed before); merging isiCollection and scopusCollection also joins Barré's 1994/1995 Scientometrics paper (596 documents instead of 597).
  • convert2df() stops with a clear message when a file holds no document: an empty export, or a file of another database, stopped with an error that said nothing about the cause, and a different one for each format ("invalid 'times' argument" for Web of Science, "replacement has 1 row, data has 0" for Scopus and Lens.org CSV, "missing value where TRUE/FALSE needed" for BibTeX and PubMed, a missing field for OpenAlex CSV). Every format now stops with "No documents found: the file is empty or is not in the ... format", and so do the empty objects of pubmedR, dimensionsR and openalexR. An empty file next to non-empty ones is still skipped. In Biblioshiny a conversion error opens an "Import failed" dialog and the current collection is kept, where the error was printed in place of the data table.
  • summary() of a biblioAnalysis() result prints with verbose = TRUE and gives no NA rows on small collections: verbose = TRUE turned the output off, since any value of verbose was read as FALSE. A collection with fewer than k (default 10) authors, cited papers or countries with citations filled the tables up to k with NA rows. The keywords table now has as many rows as the longer of the author keywords and the Keywords Plus (at most k), with the shorter list left blank: with k = Inf both lists were cut to the shorter one, so garfield showed 60 of its 299 Keywords Plus. With k = 10 and k = 50 the output of scientometrics, management and garfield is unchanged. Thanks to GabrielBaiano (#732).
  • The Author Profile finds the authors who have no ORCID: OpenAlex returns observed_orcids for every author of a work, an empty list when the author has no ORCID. openalexR::oa2df() (3.1.0 to 3.1.2.9000) turns a missing field of an author into NA but keeps an empty one, and tibble::as_tibble() then recycles the author's row to length 0, so every author without an ORCID vanished from the authorships of the works fetched by authorBio() and get_authors_summary(). authorBio(author_name =) then stopped with "not found among the OpenAlex authors of this article" (DOI 10.1177/1094428108319845 has three authors in OpenAlex, the tibble had two). The empty fields of each author are now made NULL before the conversion, so they become NA and the author keeps its row; the other fields are unchanged. The OpenAlex downloads of convert2df() and Biblioshiny were not affected: they read the list returned by OpenAlex with bibliometrix's own parser. Tests added.
  • Biblio AI answers are formatted correctly: the answer box showed parts of the text as source, with asterisks around bold text holding italics (**R2 (*Random Graph*) ...**) and LaTeX formulas such as $\rightarrow$, $n=68$ or $p^*$; nested lists were flattened and the lines continuing a list item became separate paragraphs, with blank lines between the blocks. The Markdown returned by Gemini is now read by commonmark (through shiny::markdown(), no new dependency), and the formulas become symbols, superscripts and subscripts (R2 → T4, n=68, p*); amounts such as "$5 and $10" are left alone. Text in quotation marks is no longer shown as code. The same applies to the abstracts and AI summaries of the document page.
  • Biblio AI: the Gemini models follow Google's current list: the menu adds Gemini 3.8 Flash and Gemini 3.6 Flash (free tier) and Gemini 4 Argon (paid API key), and drops Gemini 3.0 Flash (3-flash-preview, which Google lists as legacy, replaced by 3.6 Flash) and Gemini 2.5 Flash (deprecated: from 1 December 2026 Google answers its requests with Gemini 3.5 Flash Lite). A model saved earlier in Settings is replaced by its successor, so 2.5-flash becomes 3.5-flash-lite and 3-flash-preview becomes 3.6-flash. Gemini 3.5 Flash Lite stays the default, and the messages that suggested Gemini 2.5 Flash now suggest it.
  • Biblio AI works with the new Gemini keys starting with "AQ.": Biblio AI sent the key in the URL (?key=), where Google accepts only the classic keys starting with AIzaSy; the keys that Google AI Studio now issues (AQ.) got HTTP 403 "Method doesn't allow unregistered callers". The key now goes in the x-goog-api-key header, which accepts both, for the requests and for the check of the key, and it no longer appears in URLs. The message that called AQ. keys OAuth tokens that could never work is removed. Thanks to tiago-formol (#720).
  • Biblioshiny tells which format to choose when an upload does not fit: loading a Scopus BibTeX export with "Load bibliometrix file(s)" failed with object 'M' not found. A file that does not fit the chosen option or database now stops with a message saying the format is not correct and which settings to choose: "Load bibliometrix file(s)" accepts only saved collections (.xlsx, .rdata, .rda, .rds), and Scopus, Web of Science and PubMed exports are recognized from their first lines, so the message names their database. The settings are never changed for the user. The file extension is taken from the uploaded file name in lower case, so EXPORT.BIB works, and an upload that gives no records leaves the current collection in place. Thanks to Ching-Cheng Yang (#723).
  • Reference matching now compares titles, so the same work is one reference and different works stay apart: for Scopus references, normalize_citations() compared a string with no title, so all the books and chapters of an author in one year became one reference, and books fell back to the whole string, so co-authors written differently (LI W., WEI L., WEI LI) split one work. It now compares the title within the first author and year; volume, first page and part numbers can keep two references apart, a book and a chapter in it stay separate, and the same long title in the year most cited and the years next to it is one work, while editions further apart are now separate unless merge_editions = TRUE (a checkbox in Biblioshiny). On a Scopus collection of 569 documents, Garcia & Wei (2014) goes from 73 to 102 citations in its main group, and the distinct works by Genesee and by Garcia & Kano are no longer merged. use_title = FALSE gives the earlier behaviour. The year comes from the parentheses, not from a number in the title.
  • Reference matching can be reviewed and undone: the results carry a similarity for each variant and a min_similarity for each work, and the new splitReferenceVariant() separates a wrongly merged variant without running the matching again. Biblioshiny shows the similarity in the table of variants, with a button to separate one.
  • Biblioshiny: the co-citation networks of cited sources and authors follow the reference matching: applying the matching left the earlier CR_SO and CR_AU in place, and these networks reused them. They are now dropped when the matching is applied, and extracted again when needed. CR_original also keeps the original references when the matching is applied twice.
  • Merging PubMed and OpenAlex collections: the same document and the same author are no longer counted twice: OpenAlex names are now written with the surname first (SILVER FH, SILVER, FREDERICK H in AF) by convert2df(), and by mergeDbSources() for OpenAlex files saved earlier; a surname of more than one word is recognised only from its particles (VAN DER, DE LA, ...), so "Juan Garcia Lopez" becomes LOPEZ JG. A group in parentheses at the end of a name, such as an identifier ("Wei Yang (109917)"), is left out: it was taken for the surname ((109917) WY instead of YANG W). PubMed records downloaded through the API now take the year of the journal issue: PY was the earliest date in the PubMed record's history, one or two years early on 26% of a sample of 300 records, which also kept duplicates apart. Across databases, mergeDbSources() now keeps the copy with the most metadata (the order of the databases decides only ties), never an OpenAlex record whose source is PubMed unless all copies are, and the kept copy takes the highest citation count. A collection that was already merged is rewritten too, since it says OPENALEX only in DB_Original.
  • Biblioshiny Author Profile: a failed OpenAlex lookup now says why, and the Local Profile no longer fails with it: when the author's record could not be retrieved, the reason was discarded and the page stopped with "no applicable method for 'filter' applied to an object of class NULL", unrelated to the cause. The Global Profile now shows the error returned by OpenAlex and the DOI used (also printed in the R console), and the Local Profile, which needs only the collection, is built anyway, under the author's name in the collection. The messages for an author without works with a DOI and for a missing internet connection no longer end with a stray "error".
  • Biblioshiny Author Profile no longer shows the profile of another person: the author was looked up in OpenAlex at their position in the Scopus or WoS author list, and OpenAlex can list the authors of a work in another order or leave some out. On a collection of 569 Scopus documents, 3 of the 25 most productive authors got the profile of a co-author and 2 got an error. authorBio() gains author_name: the author is found by surname among the OpenAlex authors of the work (accents, hyphens and case aside), the initial and then the position deciding among authors with the same surname, and it stops when no author has that surname. Biblioshiny passes the name and tries up to 5 works of the author, so a work missing from OpenAlex, or listed there without the author, gives way to the next one. On that collection all 25 authors now get their own profile.
  • metaTagExtraction(Field = "CR_SO") no longer takes the first author as the cited source of a Scopus reference, and no longer drops journals cited with a volume and no pages (#711, #713): the source of a Scopus reference is read after its year, "AUTHORS, TITLE (YEAR) SOURCE, ...". A book cited without a publisher, "GARCIA O., WEI L., TRANSLANGUAGING: LANGUAGE, BILINGUALISM, AND EDUCATION, (2014)", has nothing after the year: the reference was left whole and its first field, the first author, became the source, so Most Local Cited Sources in Biblioshiny ranked authors among the journals and added up their different books under one name (GARCIA O., CUMMINS J.). Such a reference now has no source. A reference was also kept only with more than two fields after the year, a rule inherited from the WoS layout: a journal cited with its volume and no pages ("..., SUSTAINABILITY, 12, (2020)") was dropped. The source is now the first field after the year, unless it is a page range or a number. On a Scopus collection of 2730 documents the sources counted go from 129,617 to 153,802: about 7,300 author names and title fragments leave, and journals return (SUSTAINABILITY +707 references, FRONT IMMUNOL +656, PLOS ONE +420). Reported by @fubmce, fixed by @GabrielBaiano.
  • Local citations no longer lost to a doubled DOI tag: histNetwork() (and so localCitations(), normalizeCitationScore(), the historiograph and the most local-cited documents and authors) read the DOI of a cited reference as the text after its first "DOI" tag. WoS exports a share of references with the tag doubled and the volume and page zero-padded ("V0027, P00164, DOI DOI 10.1111/BEER.12177"; 2051 references of management, 47 of scientometrics): the DOI came out empty and the local citation was lost. The DOI is now the text after the last tag: on management the local citations go from 2092 to 2098 (six documents gain one citation each). A collection without SR_FULL (scientometrics) also had its SR rebuilt from the authors, which is lossy: documents came back renamed (SANCHEZ RIOFRIO AM instead of the stored SANCHEZ-RIOFRIO AM). SR_FULL is now the stored SR without the suffix that tells duplicates apart, and SR is left as it is. Tests added.
  • KeywordGrowth() merges synonyms like tableTag(), and no longer fails on a synonym group without synonyms: Words' Frequency over Time replaced each synonym with a regular expression inside every term. A group with no synonyms (a line without ";", e.g. a comma-separated list that was not converted) gave the empty pattern, on which stringi::stri_replace_all_regex() returns NA for every term, and the analysis failed with "arguments imply differing number of rows". A synonym also rewrote the longer terms containing it, and its regular-expression characters were not escaped. A synonym now replaces a whole term, as in tableTag() and cocMatrix(); the merge comes before the removal of the stopwords, as there, so a stopword no longer reappears when a group merges other terms into it; a document counts once for a term also when it held two of its synonyms; and top larger than the number of distinct terms no longer fails. Without lists every result compares identical() before and after (management and scientometrics, DE and ID, top 5, 10 and Inf); with lists the top terms are those of tableTag(). Tests added.
  • Biblioshiny: the documents of a co-occurrence network are assigned to its clusters again: since the lineage strength, clusterAssignment() reads the PageRank of a term within its cluster (Cluster_PageRank), and the Co-occurrence Network page passed only the PageRank on the whole network: the call failed, the error was swallowed and the Documents table of the clusters disappeared. The new internal clusterWords() builds the terms of a network as clusterAssignment() reads them, with the PageRank within the cluster on the co-occurrence counts, as thematicMap() computes it. It also fixes an older defect: the vertex names of networkPlot() are lower case and the names of biblioNetwork() are not, so no term found its occurrences and every term counted 1 in the membership of a document (Aria et al., 2026, Eq. 4 divides by the frequency of the term).
  • networkPlot() reports the true modularity of networks drawn without normalisation: to separate the communities in the layout, community.repulsion strengthens the edges inside a community and weakens those between communities; without a normalisation the graph with these altered weights replaced the network itself, so the modularity, the PageRank centrality of the cluster table and the edge weights of the returned graph were computed on it. The modularity was much inflated: 0.66 instead of 0.16 on the keyword co-occurrence network of management with Louvain, 0.57 instead of 0.18 on its co-citation network. The layout now uses a copy, and the network keeps its weights. Communities, layout and edge widths compare identical() before and after; normalised networks and couplingMap() are unaffected. Biblioshiny shows the corrected modularity on the Co-occurrence, Co-citation and Collaboration pages when the normalisation is None.
  • authorBio() and get_authors_summary() work again with the current OpenAlex API: since October 2026 OpenAlex also returns a doi inside the primary_location of a work, and openalexR::oa_fetch() (3.1.1, the current release) copies that field next to the work's own doi when it converts works to a tibble, so every request failed with "Column name doi must not be duplicated". Works are now fetched as a list, the fields of primary_location that repeat a field of the work are dropped, and the list is converted by openalexR::oa2df() as oa_fetch() does; other requests are unchanged. The OpenAlex downloads of convert2df() and Biblioshiny were not affected: they read the list returned by OpenAlex with bibliometrix's own parser.
  • histPlot(label = "title") no longer duplicates single-word titles (#707): node labels split the title in two lines at floor(length / 2) words, so a one-word title was written twice ("Alpha\nAlpha") and a missing one became "NA\nNA". A one-word title now stays on one line and a missing or empty title is "Not Available", as label = "keywords" and "keywordsplus" already did. The tooltips of the Historiograph in Biblioshiny had the same split and are fixed the same way. Labels of multi-word titles are unchanged. Reported and fixed by @GabrielBaiano.
  • couplingMap() returns the modularity, and Biblioshiny shows it on the Coupling Map: like thematicMap(), couplingMap() now returns modularity, the modularity (Q) of its community detection, also found in net$modularity. The Clusters table of the Coupling Map page shows it, as the co-occurrence, co-citation and collaboration networks, the Thematic Map and the Thematic Evolution already did.
  • bradford() keeps a dominant source in Zone 1 (#703): when the core sources alone hold more than two thirds of the articles, the end of Zone 1 and the end of Zone 2 coincide, and the Zone 2 range (zone1_end + 1):zone2_end counted down, relabelling the core as Zone 2 and leaving Zone 1 empty. Zone 2 is now empty in that case, the Bradford multiplier is NA as for any empty zone, and the plot no longer draws the label of an empty zone on top of its neighbour. Zones of management and scientometrics compare identical() before and after. Reported by @GabrielBaiano.
  • metaTagExtraction(Field = "CR_AU") no longer turns record identifiers into cited authors, and biblioNetwork() names an empty field: in a collection imported from the OpenAlex API with convert2df(dbsource = "openalex_api"), and in a Lens collection, CR holds the identifiers of the cited records (W2741809807, 013-507-404-965-47X), not reference strings. CR_AU took the text before the first comma of each reference, which is the identifier itself, so the co-citation network of "authors" was a network of works (all 585 documents of an OpenAlex test collection, 612 of a Lens one, got identifiers as cited authors). Such references are now skipped, so CR_AU is empty for them, as CR_SO already was. A resolved OpenAlex collection, whose CR is in the WoS layout, is unaffected, and so are WoS and Scopus: CR_AU over management, scientometrics, garfield and two Scopus collections compares identical() before and after. An empty field used to stop biblioNetwork() inside crossprod() with "requires numeric/complex matrix/vector arguments", which was already the case for the co-citation of cited sources and authors of a Lens collection: it now stops naming the field, and says when the references are record identifiers or when the column is missing and metaTagExtraction() creates it. All the other networks compare identical() before and after, over all seventeen combinations of analysis and network (including all_keywords, titles and abstracts) of management and of a Scopus collection. In Biblioshiny, the Co-citation page shows that message in a notification instead of stopping. Found while prototyping the multiplex coupling analysis. citations(field = "author") still returns whole references, or identifiers, as authors for databases other than WoS and Scopus.
  • cocMatrix(Field = "CR") normalizes the references before discarding the short ones: the references of 10 characters or fewer were discarded before normalization, which shortens them, so fragments survived. A Wiley SICI DOI contains a ";" (...3.0.CO;2-Q), and splitting CR on ";" turns its tail into a "reference" (2-Q, DOI 10.1002/(SICI)...) that is long before normalization and 2-Q after: in management six such columns (2-4, 2-E, 2-C, 2-G, 2-O, 2-Q). The column names and the cells were also normalized in two different ways for a reference opening with "(", which then got a column no document filled. Both now come from the same normalized strings, filtered after normalization. On management 43,405 columns become 43,399; on scientometrics, the WoS and Scopus fixtures and a 600-document OpenAlex collection nothing changes. The kept columns, co-citation networks and rpys() compare identical().
  • reduceRefs() cuts a reference at its DOI tag, not at an author named Doi: the normalized form of a cited reference (cocMatrix(Field = "CR"), co-citation networks, rpys()) is cut at its first "DOI ", meant as the DOI tag. For a reference whose first author is named Doi (DOI K, 2006, PHYS MED BIOL) the first "DOI " is the surname, and the reference became an empty string: in management two such references ended up together in a column with no name. The cut now requires a space before "DOI ", which is how the tag appears once the commas are replaced; every other reference keeps exactly its former form, trailing space included. On management, scientometrics, the WoS and Scopus fixtures and a 600-document OpenAlex collection only those two references change; co-citation networks and rpys() compare identical(). The identical second definition of reduceRefs() in rpys.R, which masked the one in cocMatrix.R, is removed.
  • cocMatrix(short = TRUE) counts documents, not occurrences: short = TRUE deletes the items with frequency below 2, and the frequency was the number of occurrences, while with the default binary = TRUE the matrix counts documents. A reference listed twice in the same CR therefore survived the filter although a single document cites it: 86 references of management, 21 of scientometrics and 21 of a 530-document Scopus collection, whose ID field also kept 35 such keywords. The filter now uses the number of documents when binary = TRUE; with binary = FALSE the matrix counts occurrences and so does the filter, unchanged. The filter also stops keeping columns that no document fills (an empty item name, and a garfield reference that the item list and the document lists normalized differently). All other columns compare identical() before and after, over CR, DE, ID, AU and SO of five collections from WoS, Scopus and OpenAlex. couplingMap() is the only function of the package that sets short = TRUE: its cluster memberships are unchanged over management (documents by CR and DE, authors by CR) and scientometrics, while the layout, which is computed on the Salton similarity and so depends on the number of references of each node, and the author centralities (relative difference 1.6e-4) change slightly. Found while prototyping the multiplex coupling analysis.
  • networkPlot() is four to sixteen times faster on dense networks: two steps worked one edge at a time. Colouring the edges (the colour of the community inside a community, grey between communities) ran an apply() over the edge list that read the vertex attribute again for every edge, and the weights set by community.repulsion were computed in a loop that looked up both end points with which() over the vertex names. On the co-citation network of the 1,000 most cited references of management (120,836 edges) they took about three quarters of the 23 seconds the function needed. Both are now computed on the whole edge list at once. Measured on management and scientometrics over co-citation of references (1,000 nodes) and of authors (500), bibliographic coupling (400 documents), keyword co-occurrence (300) and collaboration (200), each with Louvain, Walktrap, Leiden and no clustering, with and without normalization and repulsion: 23-31 seconds become 5-6 for the co-citation of references, 13-16 become 1-2 for co-citation of authors and coupling, and about 1 second becomes 0.15 for keywords. The graph with every vertex and edge attribute, the layout, the cluster table, the modularity and the Pajek graph compare identical() before and after in all twenty cases. What remains is igraph's own work: the layout, the betweenness centrality and the ten runs of Louvain or Leiden. Every network in Biblioshiny is drawn through networkPlot(), and so are couplingMap(), thematicMap() and thematicEvolution().
  • Biblioshiny: the Co-citation network can be normalized: the Method Parameters of the Co-citation network gain the Normalization Method selector that the Co-occurrence and Collaboration networks already have (None, Association, Jaccard, Salton, Inclusion, Equivalence; default Association, as there). The option had been left out because of the cost of normalizeSimilarity(), which is now computed on the non-zero cells only. As in the other networks, the normalized similarity drives the clusters and the layout of the nodes (see the entry on the normalisation of networks); edge widths still show the co-citation counts. On the co-citation networks of 1,000 references, cited authors and cited sources of management, normalizing adds one to three seconds.
  • cocMatrix() keeps the short OpenAlex work ids in CR: in an OpenAlex collection the cited references are work ids (W followed by digits), and cocMatrix(Field = "CR") drops every reference of 10 characters or fewer as not congruent, a filter written for reference strings. Ids of older works are 7 to 10 characters long, so they were discarded: on a collection of 585 documents downloaded through the OpenAlex API, 911 of the 53,078 references (1.7%), i.e. 784 distinct cited works, disappeared from every analysis built on CR (bibliographic coupling, co-citation). The filter now spares a reference that is an OpenAlex work id. Collections from other databases are unaffected: the matrices over management, scientometrics and two Scopus collections (old and new reference format), with and without short = TRUE, compare identical() before and after.
  • normalizeSimilarity() no longer builds dense matrices: every index divides the co-occurrence c_ij by a function of c_ii and c_jj, but it was computed with outer() on the diagonal, which allocates dense n × n matrices, and the inclusion index called min() once per cell through mapply(). On the co-citation network of the 9,999 most cited references of management the association strength took 2.9 seconds and a peak of 4.85 GB; the inclusion index took 3.6 seconds on 1,918 keywords. The indices are now computed on the non-zero cells of the sparse matrix only: 0.03 seconds and a peak of 335 MB (the collection included) on the same network. Values and returned class are unchanged: for all five indices, over coupling, co-citation, co-occurrence and collaboration networks from WoS, Scopus and OpenAlex collections, a base matrix input and a matrix with an item that never occurs, the result compares identical() with the previous one. An unknown type, which failed with "object 'S' not found", is now refused by name, and so is a non-square matrix.
  • No more igraph deprecation warnings: the network functions still called igraph functions deprecated since igraph 2.0/2.1, which R reports as "was deprecated in igraph 2.0.0" warnings (seen in thematicEvolution() through networkPlot()). They are replaced by their current names with identical results: layout.auto/circle/star/sphere/mds/kamada.kawai/fruchterman.reingold() by layout_nicely(), layout_in_circle(), layout_as_star(), layout_on_sphere(), layout_with_mds(), layout_with_kk(), layout_with_fr(); page.rank() by page_rank(); get.edgelist() by as_edgelist(); decompose.graph() by decompose(); delete.vertices() by delete_vertices(); write.graph() by write_graph(); hub_score()/authority_score() by hits_scores(); cluster_leiden(resolution_parameter = ) by resolution = ; and eigen_centrality() no longer passes the deprecated scale and options = arpack_defaults. Each replacement was checked identical() against the old call with the same seed; unused deprecated imports are dropped and igraph (>= 2.1.0) is now required. Biblioshiny still passes layout = "layout.norm" to visNetwork::visIgraphLayout(), which calls that igraph function itself: a soft deprecation inside visNetwork, never shown to users.
  • applyReferenceMatching() joins each citation string once: normalize_citations() returns one row per occurrence of a reference, and joining it back on the citation string multiplied a reference cited k times into k × k rows, with dplyr's "Detected an unexpected many-to-many relationship" warning. The duplicates were collapsed afterwards, so the results were right, but on 2000 Web of Science records the intermediate table held about 2.55 million rows instead of 130,264, and a single reference cited 1160 times accounted for about 1.35 million of them. Occurrences of the same string share their match (only the ids of the filtered references differ, and those rows are dropped right after), so the matches are now reduced to one row per string before the join. On the Scopus fixture, a 530-document Scopus collection and the 2000-document WoS collection, all four elements of the result compare identical() before and after.
  • Local citation analyses of a Scopus collection work after reference matching (#696): applying applyReferenceMatching() in Biblioshiny rebuilds CR with a join on the normalized references, so a document none of whose references survives the matching gets CR = NA. CR_SO() passes every reference to convert_scopus_new_to_classic(), where str_detect(NA, ...) is NA and the if stopped Most Local Cited Sources and the Co-citation network with "missing value where TRUE/FALSE needed". Converting the references a second time was not the cause: a reference already in the classic layout is returned unchanged. convert_scopus_new_to_classic() now returns a missing or empty reference as it is, so such a document gets CR_SO = NA, and a Scopus collection that carries a missing CR for any other reason is covered too. Documents with references are unaffected. Reported by @BehradSa1999; the cause was traced by @GabrielBaiano.
  • Reference matching in Biblioshiny keeps the references of a document it cannot normalize (#696): applying the matching, or exporting its result, replaced CR with the normalized references joined back on SR, so a document none of whose references survived the filters of applyReferenceMatching() lost its references altogether and was left with CR = NA. Such a document now keeps its original CR. Documents with normalized references get exactly the same CR as before. Separately, applyReferenceMatching() itself stopped with "missing value where TRUE/FALSE needed" on a Scopus collection holding a document with CR = NA, because the count of converted references summed an NA. References that are missing or empty are now dropped before matching, since there is nothing to match. On a collection with no missing CR, the result of applyReferenceMatching() compares identical() before and after.
  • dominance() retains productive co-authors with zero first-authorships and bounds k (#694): in dominance(), the author pool was initialized solely from names(table(results$FirstAuthors[results$nAUperPaper > 1])), omitting prolific co-authors who have multi-authored publications but zero first-authored papers ($FAA = 0$). Under Kumar & Kumar (2008), their Dominance Factor is strictly $DF = FAA / MAA = 0 / MAA = 0.0$. Slicing with D[1:k, ] without clamping $k$ to nrow(D) also produced spurious NA rows with false ranks when $k$ exceeded the available author count. dominance() now evaluates all authors with multi-authored papers ($MAA > 0$), assigns $DF = 0.0$ when $FAA = 0$, clamps $k$ to the number of eligible rows, and returns an empty data frame when no multi-authored paper exists.
  • Biblioshiny opens when the CRAN download counter cannot be read (#690): the counter in the header is read from cranlogs while the UI is built. When the read failed, tryCatch() returned a logical NA, the check that follows compared it with the string "NA", and strsplit() stopped the app before it opened with "non-character argument". check_online() calls a host that answers with an HTTP error reachable (#570), so a cranlogs outage passed the check and reached the read. total_downloads() now returns NA whenever the read yields no text, and the header shows -- as it already did offline.
  • threeFieldsPlot() maps co-occurrence matrix columns correctly in non-square layouts: in meltx(), var2 was computed as sort(var1) where var1 was rep(1:nrow(LM), ncol(LM)). Because var1 only holds row indices in 1:nrow(LM), sorting it recycled row indices into column names instead of traversing 1:ncol(LM). When nrow(LM) < ncol(LM), columns beyond nrow(LM) were never indexed and their flow was erroneously assigned to the first nrow(LM) columns. When nrow(LM) > ncol(LM), indices in var2 exceeded ncol(LM), creating NA entries in Var2 that were silently dropped by Edges[!is.na(Edges$to), ]. meltx() now indexes Var1 with rep(rownames(LM), times = ncol(LM)) and Var2 with rep(colnames(LM), each = nrow(LM)), so all edges in non-square co-occurrence matrices are mapped to their correct targets. Unequal sizes do not need an unequal n: a field with fewer items than requested is enough, so the default n = c(20, 20, 20) drew 39 of the 58 edges over scientometrics. Square layouts (nrow == ncol) are unaffected: the edges over management with the default n compare identical() before and after.
  • Hindex() retains authors and sources with zero citations: when an author or source had publications but none of them had received citations (TC = 0), which(1:length(x) <= sort(x)) matched no item and tail(..., 1) returned integer(0). In dplyr's reframe(), passing a zero-length vector for h_index dropped the group entirely, silently omitting zero-cited authors from the result table and leaving CitationList holding records for authors absent from H. Filtering by elements on such an author returned an empty data frame. h_calc() and g_calc() now return 0L when no publication meets the threshold, so zero-cited elements are reported with h_index = 0, g_index = 0, m_index = 0 and their correct publication count. Authors and sources with citations are unaffected.
  • thematicEvolution() names the periods whose themes share no word with an adjacent period: the nodes of the evolution are the clusters joined by an inclusion edge, so a period none of whose themes shares a word with the period next to it has no node at all. factor(group, labels = 1:K) then met fewer levels than labels and stopped inside a dplyr verb with "invalid 'labels'; length 2 should be 1 or 0", naming neither the period nor the cause. A collection whose vocabulary changes between the cut points reaches it, and a collection filtered to a single source is enough on real data. The function now stops before building the Sankey and names the unlinked periods, or says that no period is linked to any other, suggesting different cut points or a lower minFreq. Evolutions with linked periods are unaffected: the nodes and edges returned over management with three cut points compare identical() before and after.
  • thematicMap() returns NULL when the network yields no map, instead of stopping inside its plot annotations: a co-occurrence network can exist while no map does. When none of its terms reaches minfreq, the table of clusters is filtered down to nothing, the quadrant limits were computed on empty vectors (Inf / -Inf) and building the annotation frame stopped with "arguments imply differing number of rows: 0, 4". The same happened, one step earlier, when the matrix has rows but no two distinct terms co-occur, which networkPlot() now refuses. Both cases now return NULL with a line naming the cause, as an empty network already did, and thematicEvolution() reports them by period with the message it gained for empty networks: on management cut at 1995 with minFreq = 1000, "the period 1985-1995 holds 26 documents and yields no co-occurrence network ... its terms do not reach minFreq", where it used to fail with the same row-count error. A small or filtered collection, or a high minfreq, is enough to reach it. Maps are unaffected when they exist: the clusters and words of thematicMap() over management (repel = FALSE and TRUE) and the nodes and edges of thematicEvolution() with three cut points compare identical() before and after.
  • networkPlot() refuses a network in which no two items are linked, and clusteringNetwork() accepts a graph without edges: once the unlinked vertices are removed such a network has no vertex left, and nothing downstream is defined on it. With louvain or leiden and a seed, clusteringNetwork() compared a NaN modularity against the best one and stopped with "missing value where TRUE/FALSE needed"; with the other algorithms, apply() over the empty edge list still calls its function once, on an empty row, and the comparison inside stopped with "argument is of length zero". Neither names the network or the cause. A collection filtered to a single year (no two of its authors write together) or to a single source (no two of its keywords co-occur) is enough to reach it. networkPlot() now stops at once and says that no two items are linked, mentioning edges.min when that threshold is what emptied the network; clusteringNetwork() keeps the first run when the modularity is not a number and skips the edge colouring when there is no edge, so a graph of isolated vertices can still be clustered when isolates are kept. Networks with edges are unaffected: the cluster membership, the layout and the edge colours returned by networkPlot() over the keyword co-occurrence network of management with louvain, walktrap and leiden compare identical() before and after, as do the thematic maps built on it.
  • sourceGrowth() works on a collection that spans a single publication year: the year-by-source matrix then has one row, and PYSO[, cols] dropped it to a vector that as.matrix() turned into a column, so the table came out transposed and assigning the column names stopped with "'names' attribute [4] must be the same length as the vector [2]". A collection filtered to one year is enough to reach it. The subset now keeps both dimensions (drop = FALSE) and returns one row, Year followed by the cumulated counts of the top sources. Collections spanning more than one year are unaffected: the tables returned over management (top 5, cumulated and not) and scientometrics compare identical() before and after.
  • timeslice() says how many documents have no publication year: such a document belongs to no period — cut() sends it to NA and split() discards it — and dropping it is intended, since there is no period it could go in. It was dropped in silence, so the slices held fewer documents than the collection and nothing said why: five missing years in a collection of 147 returned 142 documents across the slices. The count is now reported with message(), so it can be silenced with suppressMessages() where it is not wanted. Collections whose years are all present print nothing and are unaffected.
  • timeslice() keeps a period that holds no document, and names a cut point it cannot use (found while fixing #674): a period with no document is a level of the factor cut() returns but not a group of the split, so the names were longer than the list they were assigned to and the function stopped with "'names' attribute [3] must be the same length as the vector [2]" — a complaint about a vector the caller never wrote. A gap in the publication years is enough to produce one, so no unusual cut point is needed; a cut point outside the years of the collection does it too. Splitting on the factor rather than on as.numeric() of it keeps every period, empty ones included, and names them from the intervals. Separately, a cut point on the last year, or repeated, collides with the bounds the function adds around it and made cut() stop with "'breaks' are not unique"; it is now refused by name, with the years the collection covers. Cut points passed out of order were already sorted by cut() and still are. Collections sliced by the documented paths are unaffected: the slices of the four reference collections of bibliometrixData are identical to before, for the default, for k = 3, and for one and two cut points. thematicEvolution() reports an empty period by its interval, because a period with no document has no years to be named by — min() of nothing is Inf, which read as "Inf--Inf".
  • thematicEvolution() no longer carries a branch that prints the string "Error" (found while fixing #674): a check for having fewer than two periods sat after the loop that maps every period — so all of them were built before it could refuse anything — and refused with print("Error") followed by return(), a string that names nothing and a NULL handed back to the caller to fail somewhere else. It could not fire: timeslice() builds its cut points as c(min(PY) - 1, years, max(PY)), so a years vector of length n always gives n + 1 periods, and no years at all falls back on k = 5. The branch is removed and the invariant that made it unreachable is written down, in a comment where K is computed and in a test over timeslice().
  • thematicEvolution() accepts years = NULL, and names the period it cannot map (found while fixing #674): timeslice() documents k as "used only in case breaks argument is not provided", and NULL is how a caller holding no cut points naturally expresses that, but NULL[1] is NULL, so is.na() on it returned logical(0) and the test choosing between breaks and k stopped with "argument is of length zero". A zero-length numeric already fell back on k, because numeric(0)[1] is NA; only NULL did not. timeslice() is exported, so the same call failed directly. Behind that, a second stop: with equal-width periods the earliest one is thin — two documents of scientometrics, six of management — and its co-occurrence network is empty, so thematicMap() returns NULL, which thematicEvolution() then read as though it were a map and failed with "no applicable method for 'filter' applied to an object of class NULL", naming neither the period nor the cause. It now stops at once, naming the period and how many documents it holds. Lowering minFreq does not rescue such a period — measured, the two-document period of scientometrics is empty at minFreq = 1 as well — so the message asks for different cut points and mentions minFreq only for a period that does hold enough documents. Calls that pass cut points are unaffected.
  • thematicMap() draws a map that has a single cluster (found while fixing #674): adjust_positions_oblique(), which pushes overlapping clusters apart, looped over 1:(nrow - 1). With one cluster that range counts down — 1:0 is c(1, 0) — so the inner loop read a row that does not exist, the distance between the two became NA, and the function stopped on "missing value where TRUE/FALSE needed" instead of returning the single position untouched. thematicMap(scientometrics, field = "ID", n = 3, minfreq = 1) reached it. One point has nothing to be separated from, and an empty set has no point at all: both are now returned as they came. The existing test of thematicMap() passed repel = TRUE, which is the branch that never calls the function, so nothing covered it; the new test uses repel = FALSE. Maps of two or more clusters are unaffected, with identical positions before and after for coincident, near and well separated points.
  • Every plot draws its logo through logoDelta(), so a collection with no spread on one axis no longer stops the plot: logoDelta() was written for #661 and applied only inside plot.bibliometrix.R, leaving the same expression — diff(range(v)) * frac — in nine other files of R/ and in fourteen places in inst/biblioshiny/. Where every value on an axis is equal, that expression is zero; when it is zero on both axes the logo box collapses to a point, the grid viewport has no area, its ratio is 0/0 and the plot stops with "missing value where TRUE/FALSE needed" instead of drawing. Measured: a collection filtered to a single year gives the annual production plot of Biblioshiny one year and one frequency, and the plot does not draw. logoDelta() falls back to one unit of the axis — one document, one year — so the box always has an area. One visible repair comes with it: bradford() on a collection with a single source, which is what the scientometrics reference collection is, computed a logo box of zero width, because the x axis is log(Rank) and the only rank is 1. The logo was never drawn on that plot and now it is. Collections with more than one source are untouched: the logo boxes of bradford() over management, isiCollection and garfield are identical to before, as are those of lotka(), rpys(), fieldByYear(), authorProdOverTime(), thematicMap(), couplingMap() and plot.bibliometrix(). The helper moved from plot.bibliometrix.R to zzz.R, where the other internal helpers live, now that nine files share it; Biblioshiny takes it with bibliometrix:::logoDelta, the pattern openalex_api.R already uses. Found while fixing #674.
  • lotka() refuses a collection whose author productivity distribution is a single point, with a message that names the cause (#674): where every author has written the same number of documents — a small or filtered collection in which each author appears exactly once is the common case — AuthorProd collapses to one row and the function died inside ks.test() with "not enough 'y' data", which names neither lotka() nor the collection. Repairing only that crash uncovers a second one: with a single row both diff(range()) of the logo box are zero, the grid viewport has zero area, its ratio is 0/0, and drawing the plot stops with "missing value where TRUE/FALSE needed". Neither is worth surviving, because a single point has no slope to estimate: lm() returns an NA coefficient, so Beta, the fitted distribution and both KS statistics would come back NA and the fitted line would be missing from the plot — a result with nothing in it, returned as if it were one. lotka() now stops before fitting, saying how many documents every author has written. Three neighbouring cases that reached the same dead ends are refused the same way, each naming what is missing: a collection without the AU field (previously "object 'AU' not found", raised from inside a dplyr verb), an empty collection ("no rows to aggregate"), and a collection whose AU field holds no author name ("not enough 'y' data" again). Collections with at least two distinct productivity levels are unaffected: the table, the statistics and the fitted values returned over the four reference collections of bibliometrixData are identical to before. The refusal also puts the plot crash out of reach, because a productivity table of two or more rows always spans more than one value on the x axis, so no guard on the logo placement is needed. Reported by @GabrielBaiano.
  • The affiliation of the corresponding author imported from an OpenAlex CSV no longer carries a leading blank (#666): in the export format that ships the affiliations in authorships.affiliations and the corresponding author in corresponding_author_ids, replace_corresponding_info() split those multi-value columns on ";" and used the pieces as they came. The two functions that build them do not agree on the separator — csvOA2df() turns the CSV's "|" into ";" with no space, while extract_collapsed_affiliations() joins C1 and C1_ID with "; " — so every element but the first kept a blank in front of it. Whenever the corresponding author was not the first author of the document, RP came back as " UNIVERSITY OF ...", and the same institution then counted as two distinct values: on a collection where the corresponding author is sometimes first and sometimes not, one university appeared twice in every ranking, table and network built on RP. The elements are now trimmed wherever those columns are split, which also closes the case in which the comparison of the author IDs found nothing at all and returned the name and the country of the corresponding author as NA. The same call passed an empty string as the arr.ind argument of which(); base::which() tests that argument with isTRUE(), so the empty string was read as FALSE and never had an effect, but it was removed with the rest. The old export format had no test covering it: tests/testthat/fixtures/openalex_oldformat_sample.csv now does. Found while checking the report of @GabrielBaiano.
  • biblioAnalysis() no longer stops on a collection that omits one of its mandatory fields (#661): the author counters (nAU, AuSingleAuthoredArt, AuMultiAuthoredArt) are assigned inside if ("AU" %in% Tags) and read unconditionally when the result is assembled, so a collection without the author field failed with "object 'nAU' not found" — the defect reported in the pull request. Dropping each mandatory tag in turn from an 898-document collection found the same shape in four more places: without PY the citation block divided the times cited by a year vector of length zero and built the ranking of the most cited papers from columns of two different lengths ("arguments imply differing number of rows: 898, 0"); without DB every database test in metaTagExtraction() read NULL[1] ("argument is of length zero"); without TC and without SO the analysis completed but summary() then failed on a ranking that had never been built ("attempt to set 'rownames' on an object with no dimensions", "object 'AA' not found"). Every unavailable field is now NULL, the convention the function already used for all the others, and the sections of summary() and plot() that depend on it are skipped with a line naming the field the collection does not carry — rather than returning an object that fails one call later. Collections that carry all of them are unaffected: the analysis object, the summary list, the printed summary and the plots of the four reference collections of bibliometrixData are identical to before, with the single exception noted below, which is itself a repair. Reported by @GabrielBaiano.
  • An empty collection is refused with a message that names the cause (#661): biblioAnalysis() on a collection of zero documents stopped inside an aggregation with "no rows to aggregate", which says nothing about what went wrong. Every distribution it computes is empty on such a collection and every ratio is 0/0, so it now stops at once with "biblioAnalysis() needs a collection with at least one document."
  • The plots of a single-document collection are drawn (#661): plot() on a collection of one document stopped inside grid with "missing value where TRUE/FALSE needed". The bibliometrix logo is placed in a box measured as a fraction of the range of the values on that axis, and a collection of a single document — or one whose values happen to be all equal — has a range of zero: the box collapses to a line and the raster it holds has an undefined ratio. The box now falls back to one unit of the axis, which is one document or one year. Two further defects surfaced in the same case: sort() on a frequency table holding a single entry returns a plain named vector, dropping the table class and with it the name of the tabulated variable that the plots map onto ("object 'AU' not found"), and a k larger than the number of authors left empty rows that were drawn as an NA bar. The frequency tables built by biblioAnalysis() now keep their class in every case — which also repairs Sources on a single-journal collection such as scientometrics, where the values and the names were already right and only the class was lost — and the empty rows are dropped before the bars are drawn.
  • Local citations were always zero on a collection whose cited references came from metadata enrichment: histNetwork() picks its matcher from the database of the collection, and the OpenAlex and Lens branches resolve local citations by native record identifier — the OpenAlex Work IDs held in CRids (or in CR), the Lens UT. completeMetadata() fills a missing CR with references rebuilt in WoS format, which carry the DOI and no identifier, and a minimal OpenAlex CSV export ships no references at all, so nothing is left for the identifier to match: every LCS came back 0, silently, in Most Local Cited Documents, in Most Local Cited Authors and in the Historiograph, which reported that no document of the collection cites another one. A collection in that state is now handed to the database-agnostic matcher, which pairs a reference with a document by DOI as well as by reference item: the SR part of an enriched reference (author initials, abbreviated journal) rarely reproduces SR_FULL exactly, so the DOI is what ties it back. On a 2224-document OpenAlex collection enriched with its cited references this recovers 111 locally cited documents and 448 local citations, and draws the historiograph. A collection whose references do carry identifiers keeps the exact identifier matching, which remains the better one — it also counts the references that have no DOI: on a 4172-document collection, 1732 local citations by identifier against 1314 by DOI.
  • A collection from any other database with enriched references is no longer refused — and no longer errors: the last branch of histNetwork() printed "Database not compatible with direct citation analysis" and then returned a result that had never been created, so a PubMed, Cochrane or Dimensions collection whose CR had been filled by completeMetadata() failed with object 'results' not found instead of being analysed. Those collections now go through the same WoS-style matcher, which is database-agnostic. Collections that carry no cited references at all are unaffected: they still return early, with the message that names the missing field.
  • The affiliation is no longer read off the wrong part of the address (#431): AU_UN is built by splitting each address in C1 into its comma-separated parts and keeping the one that carries an institution tag (UNIV, INST, HOSP, CTR, ...). The parts holding digits are discarded first, since a street number, a PO box or a postal code is never an institution — but the positions of the tagged parts referred to the full address and were then used to index the shortened one, so every address whose institution was preceded by a numbered part returned a later part instead. 3400 Spruce St, Univ Penn, Philadelphia, PA USA gave PHILADELPHIA, PO Box 100, Univ Oslo, Oslo, Norway gave OSLO, Bldg 10 Room 2C146, Natl Cancer Inst, Bethesda, MD USA gave BETHESDA: the affiliation silently became the city, sometimes the country, sometimes nothing at all. Street numbers and postal codes are the rule in Scopus, PubMed and Lens addresses and are common in the WoS reprint address as well. The parts are now indexed on the address they came from. In the package's reference collections this changes the affiliation of between 0.2% and 2.4% of the documents, in every case from a city, a country or a missing value to the institution actually stated in the address.
  • AU1_UN no longer reports NOTREPORTED as an affiliation (#431): when no institution can be recognised in a part of the address, the selection marks it NOTREPORTED (nothing matched) or NOTDECLARED (the only match was a number). These are internal markers. AU_UN stripped them before returning, AU1_UN — the corresponding author's affiliation — did not, so they reached the analyses and the reports as though they were the name of an institution: in the package's Scopus reference collection 414 of the 487 documents carried one. Both fields are now cleaned by the same routine, which also repairs the case that leaked through AU_UN too — a value made of markers only survived as a literal NOTREPORTED, because the bare markers were turned into NA before the compound ones were removed. AU1_UN now also picks the institution with the same routine as AU_UN instead of giving up on the first tagged part when that one holds a digit.
  • An institution whose own name carries commas is no longer cut down to a fragment (#431): the affiliation is picked among the comma-separated parts of the address, so a name that itself contains commas was split along with the address and only the part holding the tag survived — National Heart, Lung, and Blood Institute was reported as AND BLOOD INSTITUTE. When the part holding the tag opens with the conjunction, the name is now rejoined with the parts before it, up to two of them and never across a numbered or long part, which is what keeps Dept of Medicine, National Heart, Lung, and Blood Institute from swallowing the department. Serial commas inside a name are the norm in the addresses spelled out in full by PubMed, Scopus and Lens; WoS abbreviates them and is unaffected.
  • A job title is no longer mistaken for an institution (#431): the institution tags are prefixes, so SCI matches SCIENTIST, RES matches RESEARCHER and INST matches INSTRUCTOR, and the matches are tried in the order of the tag list rather than in the order of the address. An address opening with the author's role therefore returned the role: Nurse Scientist, Childrens Hospital of Philadelphia was reported as NURSE SCIENTIST. A part that consists of nothing but a title, with or without its modifiers (senior, clinical, research, data, ...), is now skipped; an address that holds no institution besides the title yields NA rather than the title. The test is anchored on the whole part, so institutions such as College of Family Physicians or Institute of Academic Medicine are untouched. Neither change alters a single affiliation in the four reference collections of bibliometrixData.