Closed lucasmation closed 7 years ago
great. But lets remember to switch back to the readr default (which will either incoporate read_fwf2 there or its functionality in read_fwf) if they accept our pull request (readr/issue/637)
@gutorc92, while we wait for our pull request to readr (readr/issue/637) to be answered, please add the new reard_fwf to the microdadosBrasil package, so we can close this issue, issue #121 , and so that users get the correct behaviour from our package
please add it to a temp_read_fwf.R file (inside the R folder) so we can remove if the pull request is accepcted
We are running into problems because of two aspects of IBGE stype fwf files that are not supported by readr::read_fwf() :
So I propose we create a new function read_fwf2 that can handle those.
My suggested pseudo code:
@iasminilima, @joaofm91, @daniellima123 : please try implementing this. @gutorc92, @nicolassoarespinto : please help them with questions they may have