Closed rkrug closed 6 months ago
Thanks @rkrug, and yes, this is definitely a bug. I'll work on a solution asap and get back to you.
Sorry that took a while @rkrug, but with the above commit you should now see something like this:
library (deposits)
packageVersion ("deposits")
#> [1] '0.2.1.53'
cli <- depositsClient$new (service = "zenodo", sandbox = TRUE)
metadata <- structure(
list(
title = "LEEF-1 experiment",
creator = list(list(
name = "Some name"
)),
description = "Description of the data",
license = "CC-BY-SA-4.0",
accessRights = "open"
)
)
cli$deposit_fill_metadata(metadata)
cli$deposit_new ()
#> ID of new deposit : 29650
cli$hostdata$metadata$access_right
#> [1] "open"
Created on 2024-02-19 with reprex v2.1.0
Thanks. I will look at it in some time as I will need this for a different project as well (the employment for the one =I wanted to use this for ended.).
First of all thanks for a brilliant package - it looks like a huge timesaver to me!
When I
deposit_fill_metadata()
together withlicense
andaccessRight
for Zenodo I an get an error mentioning that accessRight has to be either one of the values, but it isopen
.deposits
installer from r-universe. Am I missing something here?Created on 2023-12-01 with reprex v2.0.2