rdatacite

knitr::opts_chunk$set(
  comment = "#>",
  collapse = TRUE,
  warning = FALSE,
  message = FALSE
)

Project Status: Active – The project has reached a stable, usable state and is being actively developed. cran checks R-CMD-check codecov.io rstudio mirror downloads cran version DOI

rdatacite provides programmatic accesses to DataCite (https://datacite.org/) metadata

rdatacite docs: https://docs.ropensci.org/rdatacite

Package API:

cat(paste(" -", paste(sprintf("`%s`", getNamespaceExports("rdatacite")), collapse = "\n - ")))

Installation

Stable CRAN version

install.packages("rdatacite")

Development version from github

pak::pkg_install("ropensci/rdatacite")
library('rdatacite')

Result objects

Outputs from nearly all rdatacite functions will be of class dc, an S3 class that's simply a named list of results. You can easily remove the class via unclass(). The print.dc method prints the data.frame for the data, included, and reports slots if they exist, but hides the meta named list. You can get to the metadata by indexing to it like $meta.

Searching

You may want to start with dc_dois().

dc_dois(query = "climate change")

The query parameter supports Elasticearch query string queries. Some examples:

# search within a field
dc_dois(query = "publicationYear:2016")
# fuzzy search (via *) on a nested field
dc_dois(query = "creators.familyName:mil*")

Meta



ropensci/rdatacite documentation built on Jan. 17, 2023, 7:56 p.m.