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

Create a downloadObject function #217

Closed maier-m closed 6 years ago

maier-m commented 6 years ago

Create a downloadObject function to assist users with getting files from dataONE. An alternative now is to use:

foo <- dataone::getObject() writeBin(foo) But this will fail with files >2GB because of limitations inherent to R

A downloadObject function should be part of the D1Client module to preserve API congruence.

Additionally, the function should use mediaType and fileName sysmeta when possible to name files and give file extensions.

gothub commented 6 years ago

Completed by @maier-m in commit 82fe053181000ded8d7b9c27a3453e692f6b5fe2