.Rprofile results in corruption of .RData? (PR#346)
Sat, 27 Nov 1999 03:01:11 +0100 (MET)
It could be that the following may be due to something wrong that I managed
to do (I cannot think what...) but I submit this report in case it is something
that you want to know about (I have solved the problem by removing .Rprofile as
I describe below).
1. After compiling/installing R 0.90 (an uneventful process), it
worked perfectly the first time, and it read .RData written by the
previous version, but later it would not read .RData (written by
current version). I finally traced the problem to
~/.Rprofile which somehow seemed to cause .RData to be corrupted when
R writes it, causing R to give the following message and abort next time
it is run:
Error: unresolved node during restore
Fatal error: unable to restore saved data
(remove .RData or increase memory)
2. Nothing in .Rprofile seemed suspicious.
3. I removed .Rprofile, and the problem disappeared (of course, the corrupted
.RData file still could not be read, but what R now saved as .RData
it could read subsequently.)
4. I copied Rprofile from
to my home directory and renamed it .Rprofile without otherwise
modifying it. The problem reappeared.
5. I removed ~/.Rprofile, and edited Rprofile in /usr/local/.../R
(to remove significance stars and set emacs as the editor).
Now everything works perfectly again (as long as there is no
.Rprofile in the home directory or in my working directory.
I apologize if this is some problem I caused during installation and is
not a problem with R, in which case please ignore this report. I would be
more than glad to try out things if you think this might be something
suspicious that is happening that should be looked into. The problem on
my computer is quite reproducible and does not appear to be related to the
size or content of .RData.
Thank you again for R!
--please do not edit the information below--
platform = i586-unknown-linux
arch = i586
os = linux
system = i586, linux
major = 0
minor = 90.0
year = 1999
month = November
day = 22
language = R
.GlobalEnv, Autoloads, Autoloads, package:base
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: email@example.com