dc_activities: DataCite REST API: activities

View source: R/dc_activities.R

dc_activitiesR Documentation

DataCite REST API: activities

Description

DataCite REST API: activities

Usage

dc_activities(
  ids = NULL,
  query = NULL,
  limit = 25,
  page = 1,
  cursor = NULL,
  ...
)

Arguments

ids

(character) one or more activity IDs

query

(character) Query string

limit

(numeric/integer) results per page

page

(numeric/integer) the page to get results for. default: 1

cursor

(character) page cursor (used instead of limit param). to use cursor pagination, set cursor = 1, then use the link in $links$next

...

curl options passed on to crul::verb-GET

Details

for more info on the /activities route see https://support.datacite.org/docs/tracking-provenance

Examples

## Not run: 
if (dc_check()) {
x <- dc_activities()
x
# dc_activities(x$data$id[1]) # FIXME: doesn't work, returns no data
# dc_activities(query = "ecology") # FIXME: this thlimit a 500 error
}
## End(Not run)

rdatacite documentation built on Feb. 16, 2023, 5:18 p.m.