Re: [Rd] bindingIsLocked returns illogical logical

2006-05-14 Thread Seth Falcon
Martin Morgan <[EMAIL PROTECTED]> writes: > bindingIsLocked applied to a locked binding returns a 'logical' that > is niether true nor false. Is this a philosophical question? :-) Here's what I think is going on: BINDING_IS_LOCKED does not return 0/1, but the result of a bit op that will be eit

Re: [Rd] Suggestion for system.time()

2006-05-14 Thread François Pinard
[Seth Falcon] >[François Pinard] >> [Seth Falcon] >>>Here's a function you could try. >> Thanks, Seth. Your code could be useful, I'm saving it. :-) >You make it sound like that code is going to mature like a wine. >I'd say, if it isn't useful now, it will be less useful later, but hey, >disk s

Re: [Rd] Suggestion for system.time()

2006-05-14 Thread Seth Falcon
François Pinard <[EMAIL PROTECTED]> writes: > [Seth Falcon] >>Here's a function you could try. It names the result as you >>suggested. It also can be nested, which system.time cannot, because >>it uses on.exit without specifying add=TRUE. > > Thanks, Seth. Your code could be useful, I'm saving

Re: [Rd] Suggestion for system.time()

2006-05-14 Thread François Pinard
[Seth Falcon] >[François Pinard] >> Hi, people. A tiny suggestion for the system.time function. >> Could the returned vector have names? These could be like: >>c("User", "System", "Elapsed", "Sub.User", "Sub.System") >> That would then produce self-documenting output. >Here's a function you

Re: [Rd] Suggestion for system.time()

2006-05-14 Thread Seth Falcon
François Pinard <[EMAIL PROTECTED]> writes: > Hi, people. A tiny suggestion for the system.time function. > > Could the returned vector have names? These could be like: > >c("User", "System", "Elapsed", "Sub.User", "Sub.System") > > That would then produce self-documenting output. Here's a

[Rd] bindingIsLocked returns illogical logical

2006-05-14 Thread Martin Morgan
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 > bindin

[Rd] Suggestion for system.time()

2006-05-14 Thread François Pinard
Hi, people. A tiny suggestion for the system.time function. Could the returned vector have names? These could be like: c("User", "System", "Elapsed", "Sub.User", "Sub.System") That would then produce self-documenting output. -- François Pinard http://pinard.progiciels-bpi.ca __

Re: [Rd] str() with attr(*, "names") is extremely slow for long vectors

2006-05-14 Thread Gerhard Thallinger
> "MartinM" == Martin Maechler maechler at stat.math.ethz.ch >Sat, May 13 2006 15:16:19 +0200 writes: MartinM> But have you looked at R 2.3.0-patched at all? MartinM> MartinM> I did acknowledge that str() had become MartinM> unacceptably slow, and had implemented a simple pa