ropensci / datapack

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

Automated method to extract file from DataPackage / DataObject #88

Open gothub opened 7 years ago

gothub commented 7 years ago

There is no automated way to extract data from a DataObject into the correct file format (binary vs text) with the proper file type. One current method is to use getMember() to extract a DataObject from a DataPackage, then use getData() to extract the data from the DataObject, then use rawToChar() if necessary with something likewriteLines or some similar function to write out to disk. All this should be incorporated into a single function.