Re: [ESS] .Rdata not loading
However, if you did an install of RStudio , or another software package which installs its own R (there are a few), then you downgraded R on your system. Emacs and ESS have nothing to do with how R loads data, only R does. Which is why everyone is pointing you towards R. The error means that you are starting a version of R which isn't the one you normally use -- unless R corrupted the .RData file when it wrote it out. best, Tony On Thu, Dec 23, 2021 at 8:28 PM Rich Shepard via ESS-help < ess-help@r-project.org> wrote: > On Thu, 23 Dec 2021, Tyler Smith wrote: > > > If this is true, then the problem is with R or your .Rdata file. One > > plausible explanation from stackoverflow[1] is that your .Rdata file, > being > > quite large, may not have completely saved before R quit last time you > used > > it. If that's the case, there may be no solution other than > re-generating the > > data from scratch. > > Tyler, > > Okay. ,RData is 2,8074,080 bytes and /home has 270G available space. > > > Another possibility is your .Rdata was created by a version of R that's > > different from the one you're using today. That sounds unlikely since > you > > haven't manually updated your R version. Is it possible an automatic > update > > happened over night? You could recover from this by re-installing the > > previous version of R. > > Well, unless some extracomputer spirit changed the version overnight, it's > still the same 4.1.2. :-) > > I'll take up this issue on the r-help mail list. > > Thanks, all. > > Happy holidays and stay well, > > Rich > > __ > ESS-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help > -- best, -tony blindgl...@gmail.com Muttenz, Switzerland. "Commit early,commit often, and commit in a repository from which we can easily roll-back your mistakes" (AJR, 4Jan05). Drink Coffee: Do stupid things faster with more energy! [[alternative HTML version deleted]] __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] .Rdata not loading
On Thu, 23 Dec 2021, Liz Hare wrote: Did you change your .emacs to point to thew version of ESS? Liz, Here, ~/.emacs doesn't specify the ESS version. And, in a virtual terminal R can't load the .RData file. Sigh, Rich __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] .Rdata not loading
Hi Rich, ESS doesn't load data. All it does is pass commands to R. It looks like the command is getting successfully passed to R, so ESS is not likely the problem. You can confirm this by running the code in an R terminal (i.e., outside of Emacs). If the file still won't load, then you can rule out ESS as the problem. If this is true, then the problem is with R or your .Rdata file. One plausible explanation from stackoverflow[1] is that your .Rdata file, being quite large, may not have completely saved before R quit last time you used it. If that's the case, there may be no solution other than re-generating the data from scratch. Another possibility is your .Rdata was created by a version of R that's different from the one you're using today. That sounds unlikely since you haven't manually updated your R version. Is it possible an automatic update happened over night? You could recover from this by re-installing the previous version of R. Good luck! Tyler [1]https://stackoverflow.com/questions/57065994/readitem-unknown-type-64-perhaps-written-by-later-version-of-r On Thu, Dec 23 2021, Rich Shepard via ESS-help wrote: On Thu, 23 Dec 2021, Rich Shepard via ESS-help wrote: Just now I upgraded ess-17.11 to ess-18.10.2. RData still doesn't load. I re-installed R-4.1.2 and when I started ESS it still showed 17.11 rather than the newly upgraded 18.10.2. I'm stymied, beyond my R and ESS knowledge, and need to get some work done ASAP. Help's needed. Rich __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help -- plantarum.ca __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] .Rdata not loading
> than the newly upgraded 18.10.2. Hi, Rich, Did you change your .emacs to point to thew version of ESS? Liz __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] .Rdata not loading
Apologies if you've already tried this, but have you tried running R on its own in a terminal? Do you get the same error then when trying to load .RData? On Thu, Dec 23 2021, Rich Shepard via ESS-help wrote: > I use R with emacs and ESS. Each time I finish with a session I save the > image. Today when I invoke ESS 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 happed 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 users0 Nov 4 14:57 .RDataTmp1 > > What might be keeping .RData from loading? > > How do I load it? > > TIA, > > Rich > > __ > ESS-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] .Rdata not loading
On Thu, 23 Dec 2021, Rich Shepard via ESS-help wrote: Just now I upgraded ess-17.11 to ess-18.10.2. RData still doesn't load. I re-installed R-4.1.2 and when I started ESS it still showed 17.11 rather than the newly upgraded 18.10.2. I'm stymied, beyond my R and ESS knowledge, and need to get some work done ASAP. Help's needed. Rich __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] .Rdata not loading
That doesn't look like a problem with ESS - can you load .Rdata from R running in a terminal, outside of emacs? -- plantarum.ca On Thu, Dec 23, 2021, at 12:59 PM, Rich Shepard via ESS-help wrote: > On Thu, 23 Dec 2021, Tyler Smith wrote: > >> Have you recently updated R? The error message suggests the .Rdata file was >> created by a different version of R than the one you are currently running. > > Tyler, > > Just now I upgraded ess-17.11 to ess-18.10.2. RData still doesn't load. > > Rich > > __ > ESS-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] .Rdata not loading
On Thu, 23 Dec 2021, Tyler Smith wrote: Have you recently updated R? The error message suggests the .Rdata file was created by a different version of R than the one you are currently running. Tyler, Just now I upgraded ess-17.11 to ess-18.10.2. RData still doesn't load. Rich __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] .Rdata not loading
Hi Rich, Have you recently updated R? The error message suggests the .Rdata file was created by a different version of R than the one you are currently running. Best, Tyler On Thu, Dec 23 2021, Rich Shepard via ESS-help wrote: I use R with emacs and ESS. Each time I finish with a session I save the image. Today when I invoke ESS 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 happed 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 users0 Nov 4 14:57 .RDataTmp1 What might be keeping .RData from loading? How do I load it? TIA, Rich __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help -- plantarum.ca __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
Re: [ESS] .Rdata not loading
On Thu, 23 Dec 2021, Tyler Smith wrote: Have you recently updated R? The error message suggests the .Rdata file was created by a different version of R than the one you are currently running. Tyler, I saw that, but nothing's changed suince 4:00 pm yesterday. -rw-r--r-- 1 rshepard users 28074080 Dec 22 15:32 .RData Thanks, Rich __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help