bibtex_core_data: Makes a 'bibtex' entry from an output of 'abstract_retrieval'...

View source: R/bibtex_core_data.R

bibtex_core_dataR Documentation

Makes a bibtex entry from an output of abstract_retrieval or article_retrieval

Description

Makes a bibtex entry from an output of abstract_retrieval or article_retrieval

Usage

bibtex_core_data(x)

Arguments

x

output of abstract_retrieval or article_retrieval, with both get_statement and content

Value

A character vector of bibtex values

Note

Adapted from https://github.com/pybliometrics-dev/pybliometrics/blob/master/pybliometrics/scopus/abstract_retrieval.py

Examples

api_key = get_api_key(NULL, error = FALSE)
if (!is.null(api_key)){
   x = abstract_retrieval("S1053811915002700", identifier = "pii",
   verbose = FALSE)
   res = bibtex_core_data(x)
   cat(res)
   x = abstract_retrieval("84929707579", identifier = "scopus_id",
   verbose = FALSE)
   res2 = bibtex_core_data(x)
   cat(res2)
}

muschellij2/rscopus documentation built on Feb. 4, 2024, 10:40 p.m.