[R] is this a bug? problem saving and restoring coxph objects

Ramon Diaz-Uriarte rdiazuri at students.wisc.edu
Sat Mar 25 09:21:23 CET 2000

I am using R 1.0.0 on Linux, and I am running into a problem with coxph objects
(library survival5).

If I fit a model that includes a frailty term with sparse=F (e.g

when I try to save all the objects (e.g., save.image()) I get the error:

> save.image()
Error in save(list = ls(all.names = TRUE), file = ".RData", oldstyle = FALSE) : 
	NewWriteItem: unknown type 17

If I then remove that object, I (_almost_ always) can save the current
environment (which includes other objects) and apparently exit normally.
However, when I try to restart R I get:

Error: NewReadItem: unknown type -253
Fatal error: unable to restore saved data
 (remove .RData or increase memory)

(the number after "unknown type" tends not to be the same; last two I got are
925958144 and 825307136).

Now, if I do "save.image(oldstyle=T)" I can apparently save the environment
without trouble. BUT when I try to restart R I get:

Process R segmentation fault at Sat Mar 25 09:29:13 2000

This makes for a rather disturbing problem because not even deleting the
apparently offending objects fixes the problem of restoring the current

This seems like a bug. Where should I report it? Is there a workaround?


Ramon Diaz-Uriarte
Dept. Zoology and Statistics
University of Wisconsin-Madison
Madison, WI 53706

email: rdiazuri at students.wisc.edu
phone: 608-238-8041
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