Re: R-alpha: Recycling

Gregory R. Warnes (warnes@biostat.washington.edu)
Tue, 25 Feb 1997 07:13:59 -0800 (PST)


Date: Tue, 25 Feb 1997 07:13:59 -0800 (PST)
From: "Gregory R. Warnes" <warnes@biostat.washington.edu>
To: Jim Lindsey <jlindsey@luc.ac.be>
Subject: Re: R-alpha: Recycling
In-Reply-To: <9702250841.AA10555@alpha.luc.ac.be>


I agree that vector recycling and streachiness can be responsible for
insideous errors.  However, a great deal of S code seems to depend on this
behavour.  Instead of of enabling or disabling the *behavour*, I would
like to be able to enable or disable the printing of *warning* messages 
when vector streaching or recycling occurs.

If the *behavour* is switchable, this may break previously working code, 
which could be quite awkward if you're debugging a function for which 
you wish streachiness/recycling NOT to occur which calls functions which 
depend on streachiness/recycling.  If instead, *warnings* were switchable 
(on by default?) it would be possible to debug a function that should not 
use these features, even if it calls functions that do.  

If the warning messages are on by default, this will still discourage the 
use of these features without breaking compatibility with S.

Greg

-------------------------------------------------------------------------------
    Gregory R. Warnes          | It is high time that the ideal of success
warnes@biostat.washington.edu  |  be replaced by the ideal of service.
                               |                       Albert Einstein
-------------------------------------------------------------------------------

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-