-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setEmbargoDate() returns error #70
Comments
nothing stupid, but a wrong copy paste on my side, and no enough tests to make sure this method worked :-) Now it should be fixed. Can you test? |
ooh thanks - might be a problem on my end, but I'm getting a time out when trying to connect: "Error in curl::curl_fetch_memory(url, handle = handle) : |
Sorry - my bad, hadn't updated some dependencies. Checking now. |
Wait - thought it was fixed. No error, but the record hasn't registered the embargo date. And I get a new error uploading a file now: "[zen4R][INFO] ZenodoManager - Using new file upload API with bucket: https://zenodo.org/api/files/48495b3f-b43c-434a-95fe-c8e62413af8a |
Although I may have forgotten to specify the access should be embargoed as well as providing a date... |
Yup - my bad. With setAccessRight that works a charm (now to fix the upload error... probably my fault). Love the package thanks so much! |
When creating a record, I attempt to
setEmbargoDate
as follows:myrec$setEmbargoDate(strftime(presenter_data$time_start, "%Y-%m-%dT%H:%M:%S%z"))
My embargo date is a properly formatted ISO-compliant date, but I get the following error:
"Error in myrec$setEmbargoDate(strftime(presenter_data$time_start, "%Y-%m-%dT%H:%M:%S%z")) :
The embargo date should be a 'Date' object"
If I use the following date format it appears to function to an extent, but throws back an error:
myrec$setEmbargoDate(as.Date(presenter_data$time_start))
where
presenter_data$time_start
is "2022-02-24 12:30:00". I then get the following error:"Error in .class1(object) : object 'publicationDate' not found"
I've tried various different formats, but nothing is working. Am I doing something stupid (I probably am, sorry!)
Thanks!
The text was updated successfully, but these errors were encountered: