Skip to content

Unable to allocate memory when opening a dta file #734

@mizuwatershui

Description

@mizuwatershui

Hi there,

Thank you for your awesome package. Previously, I used "haven" to open a .dta file without any problems, but now I get an "Unable to allocate memory" error. The file is only 137 MB, so I don't think size is the issue.

I recently updated both R and RStudio. I'm not sure if that's related, but I thought I'd mention it. I'm using RStudio version 2023.06.2+561 and R version 4.3.1 (2023-06-16). I also tried to install the 1.1.0 version of "haven", but it didn't help.

Thanks again!

> #Read STATA data in R
> library(haven)
> mydata<-read_dta("/Users/Desktop/Desktop/Research 2023/paper new analysis/Student and case.dta")
Error: Failed to parse /Users/Desktop/Desktop/Research 2023/paper new analysis/Student and case.dta: Unable to allocate memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    reprexneeds a minimal reproducible example

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions