DataONEorg / rdataone

R package for reading and writing data at DataONE data repositories
http://doi.org/10.5063/F1M61H5X
36 stars 19 forks source link

getDataPackage() - use getObject to download resmap #229

Closed gothub closed 4 years ago

gothub commented 6 years ago

getDataPackage() calls getDataObject() to obtain all objects and their sysmeta, except for the resource map itself, for which getObject() is used: https://github.com/DataONEorg/rdataone/blob/master/R/D1Client.R#L537

Modify this so that getDataObject() is also used to fetch the resource map, so that obtaining the resource map uses the same method as all the package members (where getDataObject() uses CN resolve, and in the near future will feature a retry mechanism in the event of a download problem or corrupted replica - i.e. checksum doesn't match bits).

gothub commented 4 years ago

Fixed in commit e36cb356b97d72fd49719fb90788a7478854ee2e