Skip to content

haven update 2.5.4 to 2.5.5 cannot read .sav-file anymore #788

@MarcusPenthin

Description

@MarcusPenthin

Dear developers,

after updating this package to the newest version, I am not able to read in my datafile (https://osf.io/download/j6vah/) anymore, in version 2.5.4 the R-Code (see below) worked perfectly. Even if the file is on my local disc. Installing going back to version 2.5.4 manually, everything works fine.
With package "foreign" there is no issue.

This is the reprex:

library(haven)
data_notworking <- read_sav("https://osf.io/download/j6vah/",
                  encoding = NULL, user_na = FALSE, col_select = NULL, skip = 0, n_max = Inf, .name_repair = "unique")
#> Error: Failed to parse C:/Users/semapent/AppData/Local/Temp/Rtmp2v3WlW/filebc185132513: Unknown error.

library(foreign)
data <- read.spss("https://osf.io/download/j6vah/",
                  use.value.labels = FALSE, max.value.labels = Inf, trim.factor.names = FALSE, to.data.frame = TRUE,
                  trim_values = TRUE, reencode = NA)

Other files are working fine. Don't understand what the problelm might be. Is there something corrupted in my datafile?

Kindly,
Marcus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions