-
Hi, thank you for working on the new interface! I seem to be making much better progress now. One issue: before I could do something like:
following your example in the vignette:
but when I do ls(draft) I don't see the addCommunity method; is there another way of adding the community now? Thanks! I'm using master from GitHub, but I see the package is now going across to CRAN. Thanks again for all the work with this big update to the API. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I also found some of the other examples in the vignette now do not work: (sec 4.4.2 of https://cran.r-project.org/web/packages/zen4R/vignettes/zen4R.html#ZenodoDeposit-emptyRecord)
becomes
|
Beta Was this translation helpful? Give feedback.
-
Sorry indeed there were some changes in the API regarding the communities, and i forget to update the vignette in this sense.
As submitter of a request, you have privilege to cancel it. As manager of the community (if you submitted a record to a community you manage), you can either accept or decline the request for addition. my_community = "<your community here>"
zen_com = ZENODO$getCommunityById(my_community)
#retrieve the request that was created with the review submission (using status the target community and the target record)
reqs = ZENODO$getRequests(q = sprintf("status:submitted AND receiver.community:%s AND topic.record:%s", zen_com$id, record$id))
#as submitter you can cancel it
ZENODO$cancelRequest(reqs[[1]]$id) #return TRUE if canceled
#as manager you can either accept/decline
ZENODO$acceptRequest(reqs[[1]]$id) #return TRUE if accepted
ZENODO$declineRequest(reqs[[1]]$id) #return TRUE if accepted
Note that:
Hope this helps |
Beta Was this translation helpful? Give feedback.
Sorry indeed there were some changes in the API regarding the communities, and i forget to update the vignette in this sense.
They are 2 different ways to assign communities:
ZENODO$submitRecordToCommunities(record, communities)
(withZENODO
being the instance ofZenodoManager
you created). You can do this to multiple communities, but your record should be already published. This will create arequest
for inclusion in the (list of) community.As submitter of a request, you have privilege to cancel it. As manager of the community (if you submitted a record to a community you manage), you can either accept or decline the request for addition.
You can search for req…