Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
write_sav: long Cyrillic labels in factors cause crash #395
I am working with Russian survey dataset (16k obs, 200 vars) and was trying to save it to SPSS using haven::write_sav. The dataset contains lots of character and factor variables, and when calling write_sav the R session crashes. I reproduced it on another Windows machine with lots of RAM.
I managed to establish the cause of the crash: long factor labels in Cyrillic/Russian. The reproducible example is below, . Interestingly, the workaround here is to shorten factor labels to 65-68 characters. Possibly, non-Latin characters require more bytes, so default limit in 120 characters should be smaller for non-Latin characters?
@evanmiller I think this is one for you. I see: