Skip to content

friendly wrappers for simple queries #242

@MLopez-Ibanez

Description

@MLopez-Ibanez

A query like:

cr_cn(dois = "10.1007/s10479-023-05251-3", format="citeproc-json")

returns lots of data. It would be nice to have friendly wrappers for simple queries that only return the data queried as an R list:

cr_cn(dois = "10.1007/s10479-023-05251-3", format="list", fields=c("title", "author", "year"))

or to check that a doi actually exists:

doi_exists(dois = "10.1007/s10479-023-05251-3")

or to check that it matches some given data:

doi_match(dois = "10.1007/s10479-023-05251-3", title = "A title", year = "1997", exact=FALSE)

or to check that a paper is retracted or not (https://www.crossref.org/documentation/principles-practices/best-practices/versioning/#00327):

is_retracted(dois = "10.1007/s10479-023-05251-3")

Ideally, this should not require having "bibtex" installed:

cr_cn(dois = "10.1007/s10479-023-05251-3", format="bibentry")

returns:

Error: Please install bibtex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions