eblondel / zen4R

zen4R - R Interface to Zenodo REST API
https://github.com/eblondel/zen4R/wiki
Other
44 stars 14 forks source link

getRecordByDOI #99

Closed oggioniale closed 2 years ago

oggioniale commented 2 years ago

I would like to try to get the information for a record deposited in Zenodo knowing the DOI.

I tried using getRecordByDOI following the example in the documentation, but it returns an error.

doi = "10.5281/zenodo.3378733"
# open instance to Zenodo repository ----
zenodo <- zen4R::ZenodoManager$new(logger = "INFO")
# read record by DOI ----
rec <- zenodo$getRecordByDOI(doi)

[zen4R][INFO] ZenodoRequest - Fetching https://zenodo.org/api/records?q=doi:10.5281//zenodo.3378733&size=10&page=1&all_versions=1 
[zen4R][ERROR] ZenodoRequest - Error while executing request 'records?q=doi:10.5281//zenodo.3378733&size=10&page=1&all_versions=1' 
[zen4R][ERROR] ZenodoManager - Error while fetching published records: Internal Server Error 
Error in result$doi : $ operator is invalid for atomic vectors
oggioniale commented 2 years ago

my fault! I installed the sodium packages and update the zen4R to the version 0.7 and all work fine!