Can you at least show us what you were doing. It sounds like you were trying to 'load' a text file, not something that was saved with 'save'. Here is what I get:
> load('trackV3.r') Error: bad restore file magic number (file may be corrupted) -- no data loaded In addition: Warning message: file 'trackV3.r' has magic number '# rea' Use of save versions prior to 2 is deprecated Which is very similar to your message. If you did a 'write.table', then use 'read.table' to read it back in. On Fri, Oct 30, 2009 at 2:11 PM, Marion Dumas <mario...@gmail.com> wrote: > Hello, > I have a data file originally as .mat file from matlab that I imported in R > using the R.matlab package (readMat). This loaded a list containing amongst > other things a 4x4 array of rainfall data that is quite heavy (around 40 Mb, > it took 10 minutes to load on my computer). I tried to export it as R data > file or simply a text file (using the command write) to share this data with > other R users. When I open it in the text editor, I get a normal looking > file with space-delimited numerical values. However, when I try to to load > the resulting output file, I get the following error message: > > > Error: bad restore file magic number (file may be corrupted) -- no data > loaded > In addition: Warning message: > file 'outrainfall' has magic number '0 0 0' > Use of save versions prior to 2 is deprecated > > I would really appreciate your help, as this is a rather important issue to > clarify. > Thanks > Marion Dumas > > ______________________________________________ > 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. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? ______________________________________________ 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.