[R] .Rdata not loading

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Thu Dec 23 21:09:05 CET 2021


This practice (saving and resuming from Rdata files) often ends badly this way. Objects that are "shared" in memory get saved as separate data and may not "fit" when re-loaded. This is why re-running from scratch should always be part of your workflow. There are caching approaches that track individual objects rather than entire workspaces such as the targets package or others or you can roll your own with saveRDS/readRDS or the qs package.

On December 23, 2021 11:18:45 AM PST, Rich Shepard <rshepard using appl-ecosys.com> wrote:
>Each time I finish with a session I save the image. Today the saved image
>did not load and manually running 'load('.RData') fails:
>> load('.RData')
>Error in load(".RData") :
>   ReadItem: unknown type 0, perhaps written by later version of R
>>
>
>This has not happened before.
>
>Installed is R-4.1.2-x86_64-1_SBo and in the PWD I see:
>$ ll .RData*
>-rw-r--r-- 1 rshepard users 28074080 Dec 22 15:32 .RData
>-rw-r--r-- 1 rshepard users      134 Nov  4 14:57 .RDataTmp
>-rw-r--r-- 1 rshepard users        0 Nov  4 14:57 .RDataTmp1
>
>What might be keeping .RData from loading? Is there a maximum size for
>.RData? The /home partition has 270G available space so that's not limiting.
>
>How do I load it?
>
>TIA,
>
>Rich
>
>______________________________________________
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

-- 
Sent from my phone. Please excuse my brevity.



More information about the R-help mailing list