On 25 Jul 1997, Ennapadam Venkatraman wrote:> Autoloading of libraries doesn't seem to work:This is strange. The autoloading works for me (on Linux).> > The coxph function the the library survival4 doesn't seem to work. It just > crashes R. See the example below:I get a seg fault on calls to some, but not all, compiled routines. For example, it happens with both the right-censored and counting process fitting routines in survival4 and with the Cgee code, but not with ace, avas, as.date or the Kaplan-Meier fits in survival4. I'm trying to find out why. Thomas Lumley ------------------------------------------------------+------ Biostatistics : "Never attribute to malice what : Uni of Washington : can be adequately explained by : Box 357232 : incompetence" - Hanlon's Razor : Seattle WA 98195-7232 : : ------------------------------------------------------------ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The new code seems to have broken various things. Autoloading of libraries doesn't seem to work: > library(survival4) Autoloading required library: splines Error in pos.to.env(pos) : invalid "pos" argument > search() [1] ".GlobalEnv" "library:survival4" "library:date" [4] "library:base" The coxph function the the library survival4 doesn't seem to work. It just crashes R. See the example below: -------------------------------------------------------------------------- R : Copyright 1997, Robert Gentleman and Ross Ihaka Version 0.50 Alpha-1 (July 22, 1997) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type "license()" for details. [Previously saved workspace restored]> runif(1)[1] 0.05205324> .Random.seed[1] 4721 5660 21509> library(splines) > library(survival4) > xx <- NULL > xx$ftim <- exp(-runif(100)) > xx$ctim <- 2*runif(100) > xx$sts <- 1*(xx$ftim <= xx$ctim) > xx$otim <- xx$sts*xx$ftim + (1-xx$sts)*xx$ctim > xx$z1 <- runif(100) > xx$z2 <- runif(100) > survfit( Surv(otim,sts) ~ 1,xx)Call: survfit(formula = Surv(otim, sts) ~ 1, data = xx) n events mean se(mean) median 0.95CI 0.95CI 100.0000 65.0000 0.6854 0.0223 0.7294 0.6418 0.7864> coxph( Surv(otim,sts) ~ z1 + z2, data=xx)-------------------------------------------------------------------------- It crashed the moment I hit return. E. S. Venkatraman =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>>>> Ennapadam Venkatraman writes:> The new code seems to have broken various things. > Autoloading of libraries doesn't seem to work:>> library(survival4) > Autoloading required library: splines > Error in pos.to.env(pos) : invalid "pos" argument >> search() > [1] ".GlobalEnv" "library:survival4" "library:date" > [4] "library:base"> The coxph function the the library survival4 doesn't seem to work. It > just crashes R. See the example below:> ...This is a combination of an old version of survival4 (which in particular contained an old version of require()) and the new version of R. For some reason, the current version of survival4 did not make it into CRAN thus far ... sorry. I have just placed the current versions into the CRAN master `src/contrib' dir, they should be available at the mirror sites within 24 hours. To avoid similar problems in the future, the package developers are gradually shifting to adding version numbers to their packages. The current version of survival4 is survival-4R0.1.tar.gz (S version 4, R port version 0.1). -kh =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=