get_zenodo allows to get a Zenodo record, identified by its DOI or concept DOI.

get_zenodo(doi, sandbox = FALSE, logger = NULL)

Arguments

doi

a Zenodo DOI or concept DOI

sandbox

Use the sandbox infrastructure. Default is FALSE

logger

a logger to print messages. The logger can be either NULL, "INFO" (with minimum logs), or "DEBUG" (for complete curl http calls logs)

Value

an object of class data.frame giving the record versions including date, version number and version-specific DOI.

object of class ZenodoRecord

Examples

# \dontrun{
 get_zenodo("10.5281/zenodo.2547036")
#>  Successfully fetched list of published records!
#> ! No record for DOI '10.5281/zenodo.2547036'!
#>  Try to get deposition by Zenodo specific record id '2547036'
#>  Successfully fetched list of published records!
#> ! No record for id '2547036'!
#>  Successfully fetched list of published records - page 1
#>  Successfully fetched list of published records!
#>  Successfully fetched published record for concept DOI '10.5281/zenodo.2547036'!
#> <ZenodoRecord>
#> ....|-- created: 2022-06-17T11:23:00.916079+00:00
#> ....|-- updated: 2023-09-21T06:53:03.924722+00:00
#> ....|-- revision_id: 7
#> ....|-- is_draft: FALSE
#> ....|-- is_published: TRUE
#> ....|-- status: published
#> ....|-- versions: 
#> ........|-- is_latest: FALSE
#> ........|-- index: 13
#> ....|-- access: 
#> ........|-- record: public
#> ........|-- files: public
#> ........|-- embargo: 
#> ............|-- active: FALSE
#> ............|-- reason: 
#> ........|-- status: open
#> ....|-- files: 
#> ........|-- zen4R-0.6-1.tar.gz: 
#> ............|-- filename: zen4R-0.6-1.tar.gz
#> ............|-- filesize: 51648
#> ............|-- checksum: a7cf6c5a9bda54867ea3bcab2a5dfdf9
#> ............|-- download: https://zenodo.org/api/records/6656251/files/zen4R-0.6-1.tar.gz/content
#> ........|-- zen4R-0.6-1.zip: 
#> ............|-- filename: zen4R-0.6-1.zip
#> ............|-- filesize: 65566
#> ............|-- checksum: 0cd3611a83c51e9c23703bd27e1beb92
#> ............|-- download: https://zenodo.org/api/records/6656251/files/zen4R-0.6-1.zip/content
#> ....|-- id: 6656251
#> ....|-- links: 
#> ........|-- self: https://zenodo.org/api/records/6656251
#> ........|-- self_html: https://zenodo.org/records/6656251
#> ........|-- self_doi: https://zenodo.org/doi/10.5281/zenodo.6656251
#> ........|-- doi: https://doi.org/10.5281/zenodo.6656251
#> ........|-- parent: https://zenodo.org/api/records/2547036
#> ........|-- parent_html: https://zenodo.org/records/2547036
#> ........|-- parent_doi: https://zenodo.org/doi/10.5281/zenodo.2547036
#> ........|-- self_iiif_manifest: https://zenodo.org/api/iiif/record:6656251/manifest
#> ........|-- self_iiif_sequence: https://zenodo.org/api/iiif/record:6656251/sequence/default
#> ........|-- files: https://zenodo.org/api/records/6656251/files
#> ........|-- media_files: https://zenodo.org/api/records/6656251/media-files
#> ........|-- archive: https://zenodo.org/api/records/6656251/files-archive
#> ........|-- archive_media: https://zenodo.org/api/records/6656251/media-files-archive
#> ........|-- latest: https://zenodo.org/api/records/6656251/versions/latest
#> ........|-- latest_html: https://zenodo.org/records/6656251/latest
#> ........|-- draft: https://zenodo.org/api/records/6656251/draft
#> ........|-- versions: https://zenodo.org/api/records/6656251/versions
#> ........|-- access_links: https://zenodo.org/api/records/6656251/access/links
#> ........|-- access_grants: https://zenodo.org/api/records/6656251/access/grants
#> ........|-- access_users: https://zenodo.org/api/records/6656251/access/users
#> ........|-- access_request: https://zenodo.org/api/records/6656251/access/request
#> ........|-- access: https://zenodo.org/api/records/6656251/access
#> ........|-- reserve_doi: https://zenodo.org/api/records/6656251/draft/pids/doi
#> ........|-- communities: https://zenodo.org/api/records/6656251/communities
#> ........|-- communities-suggestions: https://zenodo.org/api/records/6656251/communities-suggestions
#> ........|-- requests: https://zenodo.org/api/records/6656251/requests
#> ....|-- metadata: 
#> ........|-- resource_type: 
#> ............|-- id: software
#> ........|-- creators: 
#> ........|-- title: zen4R: R Interface to Zenodo REST API
#> ........|-- publisher: Zenodo
#> ........|-- publication_date: 2022-06-17
#> ........|-- subjects: 
#> ........|-- contributors: 
#> ........|-- languages: 
#> ........|-- version: 0.6-1
#> ........|-- rights: 
#> ........|-- description: <p>zen4R: R Interface to Zenodo REST API</p>
#> 
#> <p><a href="https://github.com/eblondel/zen4R/releases/tag/v0.6-1">https://github.com/eblondel/zen4R/releases/tag/v0.6-1</a></p>
#> ........|-- additional_descriptions: 
#> ........|-- funding: 
#> ....|-- parent: 
#> ........|-- id: 2547036
#> ........|-- access: 
#> ............|-- owned_by: 5183
#> ........|-- communities: 
#> ............|-- ids: 81c04e58-2563-4999-92ed-447ad997ac00 
#> ............|-- ids: f0a8b890-f97a-4eb2-9eac-8b8a712d3a6c
#> ............|-- default: 81c04e58-2563-4999-92ed-447ad997ac00
#> ............|-- entries: list(id = "81c04e58-2563-4999-92ed-447ad997ac00", created = "2022-03-17T22:49:56.776909+00:00", updated = "2022-03-17T22:49:56.776923+00:00", links = list(), revision_id = 0, slug = "openfair", metadata = list(title = "OpenFair"), access = list(visibility = "public", members_visibility = "public", member_policy = "open", record_policy = "open", review_policy = "closed"), deletion_status = list(is_deleted = FALSE, status = "P"), children = list(allow = FALSE)) 
#> ............|-- entries: list(id = "f0a8b890-f97a-4eb2-9eac-8b8a712d3a6c", created = "2022-11-23T15:53:29.436323+00:00", updated = "2024-03-20T06:47:47.577483+00:00", links = list(), revision_id = 16, slug = "eu", metadata = list(title = "EU Open Research Repository (Pilot)", type = list(id = "organization", title = list(de = "Organisation", en = "Organization")), website = "https://research-and-innovation.ec.europa.eu", organizations = list(list(id = "00k4n6c32", name = "European Commission"))), access = list(visibility = "public", 
#>     members_visibility = "public", member_policy = "open", record_policy = "open", review_policy = "closed"), theme = list(style = list(font = list(size = "16px", family = "Arial, sans-serif", weight = 600), primaryColor = "#004494", secondaryColor = "#FFD617", tertiaryColor = "#e3eefd", primaryTextColor = "#FFFFFF", secondaryTextColor = "#000000", tertiaryTextColor = "#1c5694", mainHeaderBackgroundColor = "#FFFFFF"), brand = "horizon", enabled = TRUE), deletion_status = list(is_deleted = FALSE, 
#>     status = "P"), children = list(allow = TRUE))
#> ........|-- pids: 
#> ............|-- doi: 10.5281/zenodo.2547036 
#> ............|-- doi: datacite 
#> ............|-- doi: datacite
#> ....|-- pids: 
#> ........|-- doi: 
#> ............|-- identifier: 10.5281/zenodo.6656251
#> ............|-- provider: datacite
#> ............|-- client: datacite
#> ........|-- oai: 
#> ............|-- identifier: oai:zenodo.org:6656251
#> ............|-- provider: oai
#> ....|-- stats:
#>     ↓ this_version.downloads = 79
#>     ↓ this_version.unique_downloads = 36
#>     ↓ all_versions.downloads = 1606
#>     ↓ all_versions.unique_downloads = 729
#>     👁 this_version.views = 111
#>     👁 this_version.unique_views = 109
#>     👁 all_versions.views = 1640
#>     👁 all_versions.unique_views = 1477
#>     ■ this_version.data_volume = 4622994
#>     ■ all_versions.data_volume = 60580816
# }