Check to see if you have an old workspace being loaded. You might have an object called 'family' which you might need to remove.
--sundar On Oct 11, 2009 12:15 PM, "romunov" <romu...@gmail.com> wrote: Thank you Jorge and Barry for your input. I've fiddled around a bit and as a result, am even more confused. If I start R console via Notepad++ (I use Npp2R) and execute the model1, it goes through just fine. Here is the sessionInfo() for this "working" session: > sessionInfo() R version 2.9.2 (2009-08-24) i386-pc-mingw32 locale: LC_COLLATE=Slovenian_Slovenia.1250;LC_CTYPE=Slovenian_Slovenia.1250;LC_MONETARY=Slovenian_Slovenia.1250;LC_NUMERIC=C;LC_TIME=Slovenian_Slovenia.1250 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.9.2 And if I run R "normally", via an icon from the desktop (Rgui.exe) it gives the aforementioned error. Here is the sessionInfo() for "non-working" session. Is it possible that grid, reshape, plyr, ggplot2 and proto could be causing this? If so, how can I prevent them from loading automatically or unloading from a live session? > sessionInfo() R version 2.9.2 (2009-08-24) i386-pc-mingw32 locale: LC_COLLATE=Slovenian_Slovenia.1250;LC_CTYPE=Slovenian_Slovenia.1250;LC_MONETARY=Slovenian_Slovenia.1250;LC_NUMERIC=C;LC_TIME=Slovenian_Slovenia.1250 attached base packages: [1] stats graphics grDevices utils datasets grid methods [8] base other attached packages: [1] reshape_0.8.3 plyr_0.1.9 proto_0.3-8 loaded via a namespace (and not attached): [1] ggplot2_0.8.3 Cheers, Roman On Sun, Oct 11, 2009 at 6:32 PM, Jorge Ivan Velez <jorgeivanve...@gmail.com>wrote: > Hi Romain, > It works for me: > > model1 <- glm(as.vector(x) ~dept*sex*admit,poisson) > model1 > ... [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.