From mtmorgan at fhcrc.org  Sun May 14 21:15:41 2006
From: mtmorgan at fhcrc.org (Martin Morgan)
Date: Sun, 14 May 2006 12:15:41 -0700
Subject: [Rd] bindingIsLocked returns illogical logical
Message-ID: <6phody0ct9e.fsf@gopher3.fhcrc.org>

bindingIsLocked applied to a locked binding returns a 'logical' that
is niether true nor false.

Martin

> e <- new.env()
> e$x <- 1
> e$y <- 2
> lockBinding("x", e)
NULL
> bindingIsLocked("x", e)
[1] TRUE
> bindingIsLocked("x", e)==TRUE
[1] FALSE
> bindingIsLocked("x", e)==FALSE
[1] FALSE
> bindingIsLocked("y", e)
[1] FALSE
> bindingIsLocked("y", e)==FALSE
[1] TRUE
> bindingIsLocked("y", e)==TRUE
[1] FALSE
> sessionInfo()
R version 2.4.0 Under development (unstable) (2006-05-13 r38060) 
x86_64-unknown-linux-gnu 

attached base packages:
[1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets" 
[7] "base"



[Rd] bindingIsLocked returns illogical logical
Martin Morgan