Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.A41.4.61b.0504221032380.254366@homer10.u.washington.edu>
Date: 2005-04-22T17:41:03Z
From: Thomas Lumley
Subject: if(foo == TRUE) .. etc
In-Reply-To: <8d5a363505042210266cedce39@mail.gmail.com>

On Fri, 22 Apr 2005, bogdan romocea wrote:

> Great suggestion; it made me change all my Ts/Fs to TRUE/FALSE.
> Given
>   F <- TRUE
>   T <- FALSE
> is it possible to forbid T to stand for TRUE, and F for FALSE in
>   function(...,something=T)?
> Or, alternatively, never allow F <- whatever and T <- whatever?
>

Allowing T and F to be used as variables is deliberate. R CMD check will 
check to see if you use T and F without defining them, which catches most 
examples.  This is done using makeActiveBinding, see the help to find out 
how you can use it yourself.

 	-thomas