Skip to contents

Parse Lens.org scholarly CSV export files into an sm_corpus object. Handles the standard Lens scholarly export format with columns for Lens ID, Title, Authors, DOI, Source Title, Abstract, and more.

Usage

sm_read_lens(
  path,
  encoding = "UTF-8",
  engine = c("native", "bibliometrix", "auto"),
  verbose = TRUE,
  call = rlang::caller_env()
)

Arguments

path

Character scalar. Path to a Lens CSV file.

encoding

Character scalar. File encoding (default "UTF-8").

engine

Character scalar. One of "native" (built-in parser), "bibliometrix" (delegate to bibliometrix::convert2df()), or "auto" (try bibliometrix first, fall back to native).

verbose

Logical. Print progress messages?

call

Caller environment for error reporting.

Value

An sm_corpus object.

Implementation

The native parser reads the Lens.org scholarly CSV export using readr::read_csv(). Key columns matched (case-insensitive): Lens ID, Title, Date Published, Year Published (or Publication Year), DOI, Source Title, Authors, Abstract, Citing Works Count (or Scholarly Citations Count), Document Type (or Publication Type), Open Access Status (or Open Access Colour), MeSH Terms, Keywords, Source ISSN, Language.

References

Aria, M. & Cuccurullo, C. (2017). bibliometrix: An R-tool for comprehensive science mapping analysis. Journal of Informetrics, 11(4), 959–975. doi:10.1016/j.joi.2017.08.007

Examples

if (FALSE) { # \dontrun{
corpus <- sm_read_lens("lens_export.csv")
corpus$works
} # }