Skip to content

v0.5.0

Choose a tag to compare

@amoeba amoeba released this 14 Sep 22:11

Biggest changes here:

  • get_package should now return results more similar to what MetacatUI shows
  • eml_creator and eml_contact can now do more, see below

CHANGED

  • get_package now has an optional argument, file_names which returns the file names for the objects in the package
  • You can now pass a metadata PID or a resource map PID to get_package. Previously you could only pass it a metadata PID
  • eml_creator and eml_contact now support adding more information than before
  • get_all_versions no longer pretty-prints its output and, instead, returns a vector of the pids in order of dateUploaded
  • You can now skip adding EML otherEntity sections to your package in publish_update via the skip_other_entities argument

NEW

  • is_obsolete: Checks whether an object has been obsoleted by another object
  • is_authorized: Checks whether an action can be performed by a user on an object. This was written because, at the time of its creation, the dataone R package didn't support this DataONE API method on Members Nodes. This function should be deprecated in the future.

REMOVED

  • get_related_pids has been removed in favor of get_package

FIXED

  • The error you got during calls to publish_update about data objects not having their fileName properties set should now be much more helpful!