[R] Magic Number Error Message

Philipp Pagel p.pagel at wzw.tum.de
Fri Mar 25 14:56:12 CET 2011


On Fri, Mar 25, 2011 at 06:42:49AM -0700, armstrwa wrote:

> When I attempt to run a script, I keep getting the error message shown

> > load("H:\\Restoration Center\\Climate Change and
> > Restoration\\MidAtlFloodRisk\\discharge data\\R files\\ALRT.txt")
> Error: bad restore file magic number (file may be corrupted) -- no data
> loaded
> In addition: Warning message:
> file 'ALRT.txt' has magic number '# Coh'
>    Use of save versions prior to 2 is deprecated 

The load() function reads stored DATA into the workspace. As you say
you want to run a SCRIPT you are probably looking for source().

cu
	Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
Maximus-von-Imhof-Forum 3
85354 Freising, Germany
http://webclu.bio.wzw.tum.de/~pagel/



More information about the R-help mailing list