knitr::opts_chunk$set( comment = "#>", collapse = TRUE, warning = FALSE, message = FALSE )
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 - ")))
Stable CRAN version
install.packages("rdatacite")
Development version from github
pak::pkg_install("ropensci/rdatacite")
library('rdatacite')
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
.
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*")
rdatacite
in R doing citation(package = 'rdatacite')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.