Re: [R] Infinite recursion error that I don't understand

2008-01-03 Thread Bert Gunter
Sent: Thursday, January 03, 2008 10:57 AM To: Bert Gunter Cc: r-help@r-project.org Subject: Re: [R] Infinite recursion error that I don't understand The error is in printing ... foo <- data.frame(I(z)) works. It is not hard to create a data frame you cannot print, and this is one.

Re: [R] Infinite recursion error that I don't understand

2008-01-03 Thread Prof Brian Ripley
The error is in printing ... foo <- data.frame(I(z)) works. It is not hard to create a data frame you cannot print, and this is one. It could be considered a bug in format.AsIs, which calls toString without removing its class. Traceback() helps: 14: format.AsIs(x, ...) 13: format(x, ...) 12

[R] Infinite recursion error that I don't understand

2008-01-03 Thread Bert Gunter
> sessionInfo() R version 2.6.1 Patched (2007-12-03 r43574) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] grDevices datasets st