Skip to content
Prev 77488 / 398502 Next

restore file magic number

On 9/19/2005 4:29 PM, Kristin_Cothern at URSCorp.com wrote:
It's probably missing a lot more than a magic number.  That's just a 
signal that the file format isn't really an R workspace any more.

You need to get an old copy from a backup.

If you're desperate and short of a backup, you could try looking at the 
file in a binary dump program to see if there's anything left of the 
contents (perhaps only part of it got trashed), and maybe try to restore 
just the good stuff, but it's not going to be easy, and the only real 
documentation for what to do is to look at the R source code.

Duncan Murdoch