ropensci / datapack

An R package to handle data packages
https://docs.ropensci.org/datapack
44 stars 9 forks source link

Metadata object relationships lost when updateMetadata() called #87

Closed gothub closed 7 years ago

gothub commented 7 years ago

The updateMetadata() function modifies the metadata object of a DataPackage and so must remove and re-insert the metadata DataObject into the package after modifying it. The replaceMember() method is used to do this, and was incorrectly calling removeMember(), resulting in the relationships for the metadata object to be removed.

gothub commented 7 years ago

Updated replaceMember so that it correctly retains all package relationships when replacing the metadata object during updateMetadata().

Fixed in commit 85ef2f6af448055a263bc76b8606c0ec7acacd8b