Following is a response from Senior DHS staff member, Ali Roghani:
Usually, with `read_dta`, you can import the data. Make sure your data is in DTA format. Two approaches can be helpful in dealing with this technical issue related to the machine/laptop.
First, you can run this code in RStudio:
```R
Sys.setenv(R_MAX_VSIZE = 16e9)
```
You might need to change the size too.
The second approach is:
1. Open Terminal
2. Run the following commands:
```sh
cd ~
touch .Renviron
open .Renviron
```
3. Save the following as the first line of .Renviron:
```sh
R_MAX_VSIZE=16Gb
```
4. Close RStudio and reopen it
You might need to adjust this parameter depending on the specifications of your machine. Please let us know whether one of these approaches works for you.
[Updated on: Thu, 13 June 2024 06:33]
Report message to a moderator