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

Peter Dalgaard R-bugs@biostat.ku.dk
Tue, 16 Feb 1999 16:33:09 +0100


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._