read_rds and readRDS failing with no error on R4.1.2

I'm reading a large table from postgres into a dataframe using DBI and dplyr. The dataframe is about 12GB on a system that has 32GB. I wrote the dataframe to disk using

write_rds(something,file="something.rds")

The size on disk is roughly equal to 12GB indicating no compression.

I restarted the R session to clear memory and then try to read the file first with

read_rds(file="something.rds")  

The RStudio GUI shows reading up to about 5GB and then the command returns with no error but there is also no dataframe available in the environment.

Just figured out for an object this large I have to do an assignment as in:

something <- read_rds(file="something.rds")

Not sure why this has never bitten me before. Curious

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.