CoryMcCartan / blockpop

Estimate Census Block Populations for 2020
https://corymccartan.github.io/blockpop
GNU General Public License v3.0
3 stars 0 forks source link

`download.file()` not Windows-friendly #2

Closed christopherkenny closed 3 years ago

christopherkenny commented 3 years ago

Hi Cory,

The current use of download.file() fails on Windows without mode specified for .zip files. This can be quickly fixed by changing:

Line 21 of R\load_state.R to:

download.file(url, path, mode = 'wb')

And line 17 of R\download_fcc.R to:

download.file(url, zip_path, mode = 'wb')