From p.dalgaard@kubism.ku.dk  Thu Oct 30 12:10:58 1997
From: p.dalgaard@kubism.ku.dk (Peter Dalgaard BSA)
Date: 30 Oct 1997 13:10:58 +0100
Subject: R-alpha: buglet in  return(invisible())  [R 0.50 and 0.60]
In-Reply-To: Martin Maechler's message of Thu, 30 Oct 1997 11:29:47 +0100
References: <199710301029.LAA00845@sophie.ethz.ch>
Message-ID: <x2en53o3hp.fsf@blueberry.kubism.ku.dk>

Martin Maechler <maechler@stat.math.ethz.ch> writes:

> 
> Evaluate the following example to get the behavior :
> 
> 		--- anybody: patch ? ---
> 
> 
> tst.i <- function(x)
> {
>   if(missing(x))
>     return(invisible())
>   else if(!is.numeric(x)) stop("x must be numeric")
>   ## else
>   invisible((x+3)^2)
> }

Actually, 
> tst.i<-function()return(invisible(3))
> tst.i()
[1] 3

(in my snapshot of 0.60, Oct 24) So return(invisible(...)) just
doesn't work.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


R-alpha: buglet in return(invisible()) [R 0.50 and 0.60]
Peter Dalgaard BSA