Is there a way to read the contents of a .RDS file without loading it all into memory?

I have a .RDS file that contains many lists and was created from a computer with more memory than the one from which I am trying to read the same data.

Is there a way to access this content without loading it all into memory?

Here is an example:

listOflists <- list(list1 = list(rnorm(1000)), list2 = list(rnorm(1000))) saveRDS(listOflists, "listOflists.RDS") 

Is it possible to read only list1 without downloading the whole file?

+5
source share

Source: https://habr.com/ru/post/1214302/


All Articles