R-core, may I suggest that the error message returns the absolute path (or even the relative path) and not just the filename/basename, e.g. "Fatal error: unable to restore saved data in C:/Users/foo/.RData" /Henrik On Thu, Sep 18, 2008 at 6:41 AM, Green, Paul <pgreen at umich.edu> wrote:> We are using R in our class. One student claims to > be receiving the message > > "Fatal error: unable to restore saved data in .RData" > > The student is working in a Windows environment with Vista > using the precompiled binary distribution (R-2.7.2). > > After searching the R site and reading FAQs, I suggested > the student find .RData in the working directory and delete it. > > The student claims this did not work so I recommended starting > R from a command line with the --no-restore option. > > Has anyone had any experience with this? Does anyone know > what may be causing this? This is the first time I have > encountered this. > > Paul Green > > ______________________________________________ > R-help at r-project.org mailing list > 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. >
And does it need to be a fatal error? load("test.txt") doesn't produce a fatal error even though the file clearly isn't in the correct format. Or is there the possibility that loading a malformed rdata file introduces memory corruption? On Thu, Sep 18, 2008 at 9:55 AM, Henrik Bengtsson <hb at stat.berkeley.edu> wrote:> R-core, may I suggest that the error message returns the absolute path > (or even the relative path) and not just the filename/basename, e.g. > > "Fatal error: unable to restore saved data in C:/Users/foo/.RData" > > /Henrik > > On Thu, Sep 18, 2008 at 6:41 AM, Green, Paul <pgreen at umich.edu> wrote: >> We are using R in our class. One student claims to >> be receiving the message >> >> "Fatal error: unable to restore saved data in .RData" >> >> The student is working in a Windows environment with Vista >> using the precompiled binary distribution (R-2.7.2). >> >> After searching the R site and reading FAQs, I suggested >> the student find .RData in the working directory and delete it. >> >> The student claims this did not work so I recommended starting >> R from a command line with the --no-restore option. >> >> Has anyone had any experience with this? Does anyone know >> what may be causing this? This is the first time I have >> encountered this. >> >> Paul Green >> >> ______________________________________________ >> R-help at r-project.org mailing list >> 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. >> > > ______________________________________________ > R-help at r-project.org mailing list > 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. >-- http://had.co.nz/
On 18/09/2008 10:55 AM, Henrik Bengtsson wrote:> R-core, may I suggest that the error message returns the absolute path > (or even the relative path) and not just the filename/basename, e.g. > > "Fatal error: unable to restore saved data in C:/Users/foo/.RData"That's a good suggestion, but unfortunately not quite trivial: the code that prints that message has no idea what the full filename is. On Unix, R just tries to open ".Rdata" without ever expanding the name, and on Windows, the full name is stored in a place that this code can't see. So it's not impossible to fix this, but it would take some rearrangement of things. I'm busy on other things so I'm not going to volunteer to do it. Duncan Murdoch> > /Henrik > > On Thu, Sep 18, 2008 at 6:41 AM, Green, Paul <pgreen at umich.edu> wrote: >> We are using R in our class. One student claims to >> be receiving the message >> >> "Fatal error: unable to restore saved data in .RData" >> >> The student is working in a Windows environment with Vista >> using the precompiled binary distribution (R-2.7.2). >> >> After searching the R site and reading FAQs, I suggested >> the student find .RData in the working directory and delete it. >> >> The student claims this did not work so I recommended starting >> R from a command line with the --no-restore option. >> >> Has anyone had any experience with this? Does anyone know >> what may be causing this? This is the first time I have >> encountered this. >> >> Paul Green >> >> ______________________________________________ >> R-help at r-project.org mailing list >> 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. >> > > ______________________________________________ > R-help at r-project.org mailing list > 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.