get_abstract: Retrieves the abstract of a research paper from CrossRef or...

View source: R/utils_render_cert_md.R

get_abstractR Documentation

Retrieves the abstract of a research paper from CrossRef or OpenAlex.

Description

This function attempts to retrieve a paper's abstract using the OpenAlex. API first. If that fails it then attempts to retrieve from CrossRef

Usage

get_abstract(register_repo)

Arguments

register_repo

URL or path to the repository containing the paper's configuration.

Value

A list with two elements: 'source' (indicating "CrossRef" or "OpenAlex" if found) and 'text' (the abstract text as a string, or NULL if unavailable).


codecheckers/codecheck documentation built on Dec. 6, 2024, 7:38 p.m.