vector memory exhausted on Mac 32GB

I'm trying to fit mixed effects models and I run out of memory. I have a 32GB mac and my dataset has 126400 rows. I'm using the mgcv package because with lme4 the models takes days to run and I read the bam() was recommended for large datasets. But when I include the random slopes then I run out of memory.
I tried the solution below that I found online but I keep getting the same error.
library(usethis)
usethis::edit_r_environ()
R_MAX_VSIZE=100Gb

Anyone have any ideas?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.