I can get the errors to happen on Ubuntu 8.10 with R --vanilla (*without* valgrind) -- but editing momfit.r line 742 so that plot.progress=FALSE seems to make the problem go away. (This was a lucky guess, it looked like there was something odd going on with the plots.)
Hope that helps someone ... Ben Bolker > sessionInfo() R version 2.8.0 (2008-10-20) i486-pc-linux-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base -- View this message in context: http://www.nabble.com/%22Error%3A-bad-value%22-problem-tp21063091p21065458.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.