frictionlessdata/datapackage-r

No way of reading ZIP files produced by Python package

Opened this issue · 1 comments

Consider the example given in the documentation of datapackage-py, which I reproduce below.

  1. Create two CSV files, data/cities.csv, and data/population.csv.
  2. Make a new data package.
package = Package()
  1. Infer the descriptor.
package.infer('**/*.csv')
  1. Export the package.
package.save('datapackage.zip')
  1. Load the package.
package = Package('datapackage.zip')

It would be convenient if datapackage-r's Package$load method had equivalent functionality. At the moment, it only accepts JSON descriptors, so cannot read data packages produced by datapackage-py (or by the R package itself), in other words

dataPackage <- Package.load('datapackage.zip')

gives an error. This makes handling data packages difficult.

I mention @sje30 for reference.


Please preserve this line to notify @kleanthisk10 (lead of this repository)

thanks @as2875 for opening this. We are starting to work on improving this code, so this is a really helpful and timely issue.