Did you check whether 'junk4.RData' was created and what its length was - maybe an empty file is being created. Is there some sort of quota or permissions problem? My suggestion would be to look at the size and permissions on the directory and the file. If you need more help, I would suggest posting more details back to the list, e.g., what OS you are using, and a directory listing that shows file sizes and permissions (i.e., as you get with 'ls -l' on Unix systems.)
-- Tony Plate Hongxiao Zhu wrote: > Hi, > > I tried to load a .RData object on unix system using R, it gives error: > > Error: restore file may be empty -- no data loaded > In addition: Warning message: > file 'junk3.RData' has magic number '' > Use of save versions prior to 2 is deprecated > > This happens only for using MY user account for the Unix system. I > tried to use a friends's user account to load the same data object, it is > fine. And it never happened to me before until sometime last week. > And This error happens even when I generate a simple random number > from my user account and save it, and load it again.(So obviously it is > not a R version mismatch problem). Does anybody know what happened? > > Here is an example what happened: > >> x=rnorm(100) >> save.image('junk4.RData') >> load('junk4.RData') > Error: restore file may be empty -- no data loaded > In addition: Warning message: > file 'junk4.RData' has magic number '' > Use of save versions prior to 2 is deprecated > > Thanks for any suggestion. > > Hongxiao > > > ********************************************** > * Hongxiao Zhu * > * Department of Statistics, Rice Univeristy * > * Office: DH 3136, Phone: 713-348-2839 * > * http://www.stat.rice.edu/~hxzhu/ * > > ______________________________________________ > R-help@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@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.