From R-bugs@biostat.ku.dk  Tue Feb 16 15:33:09 1999
From: R-bugs@biostat.ku.dk (Peter Dalgaard)
Date: Tue, 16 Feb 1999 16:33:09 +0100
Subject: source() / eval() bug ??? (PR#96)
Message-ID: <199902161533.QAA21404@biostat.ku.dk>

This one got fixed, I believe.

> R-0.63.2 and  ``0.63.3 in progress'' :
> 
> Put the following in a file
> 
> ------ 8< -- snip ----------------------------- ...../source-bug.R -------
> rm(list=ls())
> cat("before c(..):\n")
> c(F=(f <- .3), "Tail area" = 2 * if(f < 1) 30 else 90)
> ------ 8< -- snip -------------------------- end ..../source-bug.R -------
> 
> then
> 
> source("......../source-bug.R")
> 	^^^^^^^^
> 	proper path name
> 
> [[or  source("......../source-bug.R", verbose=TRUE) ]]
> 
> ends with
> 	=============================================
> 	before c(..):
> 	Error: getAttrib: invalid type for TAG
> 	> 
> 	=============================================
> 
> On interactive usage, or if you use
> 
> 	R --vanilla < ..../source-bug.R
> 
> there's no problem !
> 
> 
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


source() / eval() bug ??? (PR#96)
Peter Dalgaard