Skip to content
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

Proposed publish_package capabilities #1

Open
4 tasks
christophergandrud opened this issue Mar 20, 2017 · 5 comments
Open
4 tasks

Proposed publish_package capabilities #1

christophergandrud opened this issue Mar 20, 2017 · 5 comments
Assignees

Comments

@christophergandrud
Copy link
Collaborator

christophergandrud commented Mar 20, 2017

publish_package() should be able to:

  • Check that the current build is the most recent checked build (likely based on comparing the Background: package_commit_sha IQSS Report Card element to the most recent commit and if there are any uncommitted changes. If not, then FAIL prompting user to check_best_practice).

  • Push to GitHub with a new git tag based on Background:package_version in the Report Card.

  • Push to Dataverse with the dataverse package. (need to check if it is possible to create a new version).

  • Push to CRAN

Each of these can be disabled based on user publishing needs.

@pdurbin
Copy link
Member

pdurbin commented Mar 20, 2017

@christophergandrud as https://github.com/ropensci/dvn indicates "Many dataverse servers now use Dataverse version 4.0 or greater. A separate package, dataverse, is being developed to work with these newer installations." This is true of https://dataverse.harvard.edu and a good number of other installations listed at http://dataverse.org

At http://dataverse.org/developers we link to a "Client Libraries" page at http://guides.dataverse.org/en/latest/api/client-libraries.html which says, "https://github.com/IQSS/dataverse-client-r is the official R package for Dataverse APIs."

This is a long way of saying that you should use the "dataverse" R package, not the "dvn" package. Thanks! 😄

@christophergandrud
Copy link
Collaborator Author

Thanks for pointing out this error. . . . corrected

@christophergandrud
Copy link
Collaborator Author

christophergandrud commented Mar 20, 2017

I need to dig through this in more detail, but do you know off the top of your head if it's possible to publish an entirely new version of an existing Dataverse dataset from dataverse-client-r?

@pdurbin
Copy link
Member

pdurbin commented Mar 20, 2017

Hmm, not sure. I'm asking at IQSS/dataverse-client-r#13

@leeper
Copy link
Member

leeper commented Jun 15, 2017

In terms of R, the publish_dataset() function should let you release a new version of a dataset. I've also implemented the native add file endpoint via add_dataset_file() which would be needed to actually update the file contents themselves (unless you want to use the SWORD API - add_file() + publish_sword_dataset()).

I am still working on the update file endpoint (via a function update_dataset_file()), which you would need for updating a file. Unfortunately R is misbehaving a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants