[R] bug?

Mai Zhou mai at ms.uky.edu
Tue Mar 9 17:34:59 CET 1999

Windows 9*/NT version, on an NT box  

R 0.63.0 Beta (Nov 13, 1998)

> library(survival4) 
> test <- function(x,d) {
      survfit(Surv(x,d) ~1)
> test( rexp(50), sample(c(0,1), size=50, replace=T) )
Error: Object "x" not found

Other functions like in the ctest library works out
OK, the x and d got passed to the inner function.
And here it did not got passed to Surv(), I guess.

Is it solved in 0.63.3? Should I upgrade to 0.63.3? 
The problem is that I am in the middle of teaching a course
and 0.63.0 is the version we started with. 
Hate to tell them they all have to upgrade (many of them are
off line).

It would be better if there is a simple fix. (not upgrading) Thanks. 

Mai Z
mai at ms.uky.edu

r-help 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-help-request at stat.math.ethz.ch

More information about the R-help mailing list