eu_providers: Europeana data providers.

Description Usage Arguments Examples

View source: R/eu_providers.R

Description

Europeana data providers.

Usage

1
2
3
eu_providers(providerid = NULL, datasetid = NULL, datasets = FALSE,
  start = NULL, limit = 10, country_code = NULL, key = NULL,
  callopts = list())

Arguments

providerid

Provider ID

datasetid

Dataset ID

datasets

(logical) Whether to return datasets or not with provider information. Ignored when providerid is NULL (the default for that parameter).

start

(numeric) Record number to start with.

limit

(numeric) Size of the result set to fetch.

country_code

(character) Two-letter ISO 3166-1 country code. Not all countries give data back of course, for example, there is no data for country_code='US'.

key

Your Europeana API key.

callopts

Curl options passed on to httr::GET, see examples

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 
eu_providers(limit=1)
eu_providers(limit=1, start=3)
out <- eu_providers(limit=3)
out$meta
out$items
eu_providers(start=3)
eu_providers(providerid=20239)
eu_providers(providerid=20239, datasets=TRUE)
eu_providers(datasetid=2023901)
identical(eu_providers(providerid=20239, datasets=TRUE)$items,
   eu_providers(datasetid=2023901)$items)

# Country codes
out <- eu_providers(country_code='UK')
sapply(out$items, "[[", "country") # check that all country fields are UK

# Curl debugging
library("httr")
eu_providers(limit=1, callopts=verbose())

## End(Not run)

ropensci/rmetadata documentation built on May 27, 2019, 6:31 p.m.