-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read_sas with catalog_file resulted in failed to parse error #653
Comments
I encountered the same issue on OSX. By random coincidence, I was actually trying to access the FARS data from NHTSA just today. It may be helpful to replicate the issue with some other data source to make sure this isn't specific to how NHTSA generates the SAS files. |
Oddly enough, my issue is also with a crash database (though my state's and not from NHTSA). I am able to use the catalog file, but the labels are not applied to all columns. |
I know this is off-topic but, for @jacciz and @Sama2than, you may be interested in the crashapi R package I'm working on and a related effort to make an index of open crash data sources (currently an open Google Sheet). Feel free to ping me on Twitter if you want more details or open an issue on the crashapi repo for discussion. Glad to connect with other folks using R for crash data analysis even in the comments of a GitHub issue! |
Maintains iconv hack from c1f9f19 and solaris hack from 4a878a1. * Fix various SAS catalog file reading bugs (fix #529, fix #653, fix #680, fix #696, fix #705). * Increase maximum SAS page file size to 16MB (fix #697). * Ignore invalid SAV timestamp strings (fix #683). * Fix compiler warnings (fix #707).
I'm new to R and Haven. I'm working with data from NHTSA. NHTSA provides SAS data files and both 32-bit and 64-bit catalog files.
I am trying to use Haven to import SAS files. The read_sas function works well if no catalog file is specified. If I specify a catalog file, I get an error: "Error: Failed to parse xxx/formats_32.sas7bcat: Unable to allocate memory." This occurs using both the 32-bit and 64-bit catalog files.
I tried to put together a reprex but get an error when running the reprex: "Error: pandoc document conversion failed with error 1". I haven't solved that one, so I will paste the code I'm using to see if any can assist as is.
I'm using:
In the code below, I renamed the sas7bcat files from the supplied files to keep track of whether it is 32 or 64 bit.
The text was updated successfully, but these errors were encountered: