[Rd] multinom crashes (when I do something stupid) (PR#8358)
rob.foxall at bbsrc.ac.uk
Wed Nov 30 12:00:46 CET 2005
Full_Name: Rob Foxall
OS: Windows XP
Submission from: (NULL) (188.8.131.52)
I was using multinom from nnet package, when I did something stupid -- I entered
in an incorrect factor variable as response. This factor had only one level.
Instead of R telling me not to be so dumb, it crashed, clicking on debug coming
up with the message "An exception 'Unhandled Win32 Exception' has occurred in
Rgui.exe." This has happened on both my laptop and desktop (it took me a while
to see my mistake!). It can be easily reproduced with made-up data, e.g.
set.seed(1) # not really needed, but definitely crashes for this!
temp_g <- as.factor(rep("level1",10))
temp_x <- rnorm(10)
multinom(temp_g ~ temp_x)
More information about the R-devel