ipums / ipumsr

Request, download, and read IPUMS data in R
https://tech.popdata.org/ipumsr/
Mozilla Public License 2.0
25 stars 5 forks source link

Error in read_ipums_ddi #9

Closed giacomovagni closed 8 months ago

giacomovagni commented 2 years ago

I am using the function read_ipums_ddi to import the ATUS. It used to work fine in the past.

I get the following error

Error in read_xml.character(ddi_file_load, data_layer = NULL) :    Opening and ending tag mismatch: meta line 12 and head [76]
dtburk commented 2 years ago

Hi @giacomovagni, thanks for letting us know about this issue. I'd recommend trying two things:

  1. Try re-downloading the extract files and re-running your code. It is my understanding that the DDI codebook and the data file can sometimes get truncated or corrupted in the download process.
  2. If re-downloading doesn't work, please reply here (or email ipums+cran@umn.edu) with the email address associated with your IPUMS ATUS account and the extract number of the affected extract. That way we can try to reproduce the issue and figure out what is causing the error.
robe2037 commented 8 months ago

Presuming that re-downloading the files worked. Closing due to inactivity.