Re: [R] Magic Number Error Message

2011-03-25 Thread jim holtman
This is where you start to learn to debug scripts and to use the 'browser' function. Type in the following: options(warn = 2, error = utils::recover) This will turn warnings into errors and stop on the statement that caused the error and invoke the browser so you can check the values of various

Re: [R] Magic Number Error Message

2011-03-25 Thread armstrwa
Thanks, Philipp.  That helped a lot.  I have run into another problem now though. I am running the script, and some of it seems to work, but it outputs all NAs for the data and I get 50+ error warnings saying: Warning m

Re: [R] Magic Number Error Message

2011-03-25 Thread Philipp Pagel
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 (fil

[R] Magic Number Error Message

2011-03-25 Thread armstrwa
Hi all, When I attempt to run a script, I keep getting the error message shown below. I have seen from searching that the "Use of save versions prior to 2 is deprecated" could be an error resulting from a permissions problem, but I have been unable to find anything describing the "file has magnic