Message-ID: <200110120753.f9C7rYL06419@mail.mclink.it>
Date: 2001-10-12T07:53:33Z
From: stefano iacus
Subject: fix() recovery
In-Reply-To: <Pine.SOL.4.33.0110111502090.21355-100000@mcmail.cis.mcmaster.ca>
you should use newf <- edit(newf)
or again fix(newf)
I hope this helps you.
On the contrary I discovered a bug with the edit window I'm about to fix.
This is linked to the displaying of help files.
If you have an object that somewhere contains a "_", the edit window
will remove it.
Stefano
On Giovedì, ottobre 11, 2001, at 09:06 , Peter Macdonald wrote:
> 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
> *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac@stat.math.ethz.ch
> http://www.stat.math.ethz.ch/mailman/listinfo/r-sig-mac
>