opensafely-core / stata-docker

Builds the opensafely stata docker image.
0 stars 0 forks source link

Add `gzsave` package to support `.dta.gz` files #1

Closed evansd closed 3 years ago

evansd commented 3 years ago

The cohortextractor supports writing files as .dta.gz but these can't be read natively by Stata without the gzsave package: https://ideas.repec.org/c/boc/bocode/s446701.html https://github.com/ebardelli/gzsave

It would be good to bundle this into the base Stata image somehow so that users can replace save and use with gzsave and gzuse and benefit from compression.

I've tried compressing some real life dta files and seen saving around 90% so this definitely seems worthwhile.

bloodearnest commented 3 years ago

Fixed in #7