[R-SIG-Mac]fix() recovery

Peter Macdonald pdmmac@mcmail.cis.mcmaster.ca
Thu, 11 Oct 2001 15:06:42 -0400 (EDT)


If I edit a function in fix() and the function has a syntax error, I am
unable to recover the edit file on Macintosh the way I do on other
platforms. This is what I get:

> fix(newf)
Error in edit(name, file, editor) : An error occurred on line 5
 use a command like
 x <- edit()
 to recover
> newf <- edit()
Error in edit(name, file, editor) : unable to open file to read

Here, edit() opens an empty window instead of a window with the code from
the previous fix().

Any suggestions? Thanks!

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
 Peter D.M. Macdonald, D.Phil.      McMaster University
 Professor of Math & Statistics     Hamilton, Ontario, Canada L8S 4K1
*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*