importPublication: Create a Publication record using a PubMed identifier

importPublicationR Documentation

Create a Publication record using a PubMed identifier

Description

This function adds or updates a single Publication record using metadata associated with a PubMed identifier.

Usage

importPublication(
  PMID,
  .permissions = getOption("GeneHive.permissions"),
  con = hiveConnection(),
  verbose = getOption("GeneHive.verbose")
)

Arguments

PMID

A numeric or character vector of length one specifying a PubMed identifier

.permissions

A hivePermissions object specifying the permissions to be used when creating or updating the record

con

A hiveConnection object; if not provided, a new connection will be established

verbose

A logical value specifying whether messages should be printed

Details

The fields of the Publication record are populated from the PubMed XML record. If a DOI is present, it is added; otherwise, that field is left blank.

Value

If the operation is successful, a hiveEntity object corresponding to the Publication record is invisibly returned; otherwise, the function terminates with an error message.

Author(s)

Adam C. Gower agower@bu.edu


agower/GeneHive documentation built on April 14, 2022, 5:08 a.m.