简体   繁体   中英

Difficulty with haven package Reading SPSS data in R

I am trying to use the haven package to read spss data and am getting the following error:

Error in df_parse_sav_file(spec, encoding, user_na, cols_skip, n_max, : Failed to parse ~FilePath/Dataset: The file's timestamp string is invalid.

I have tried to update the package and restart my R session but am still having difficulty.

This issue has been reported widely:

You can try reverting to 1.1.0, which seemed to fix the issue for a lot of people.

remove.packages("haven")
devtools::install_version("haven", version = "1.1.0", repos = "http://cran.us.r-project.org")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM