Thanks to Alan and Emmanuel for their help.

There is a very nice function tryCatch.W.E() available by typing demo(error.catching). 

It returns a list with two components : the output and the warning.

Best,
Stéphane





________________________________
 De : Alan Haynes <aghaynes@gmail.com>

Cc : "r-sig-mixed-models@r-project.org" <r-sig-mixed-models@r-project.org> 
Envoyé le : Jeudi 13 décembre 2012 14h46
Objet : Re: [R-sig-ME] are warnings not stored in the lmer() output ?


Hi,

Check this old post from May (first hit from google with "warnings lmer") ;)

https://stat.ethz.ch/pipermail/r-sig-mixed-models/2012q2/018333.html

HTH

Alan



--------------------------------------------------
Email: aghaynes@gmail.com
Mobile: +41794385586
Skype: aghaynes





Hi,
>
> I have a case where lmer() returns a warning:
>
>> fit <- lmer(y ~ (1|day))
>Warning message:
>In mer_finalize(ans) : false convergence (8)
>
>But now when typing fit, summary(fit), or str(fit), I don't see this warning.
>
>
>It's annoying because I actually run lmer() several times in a loop and I'd like to know for which fitting the warnings occurred.
>
>
>Stéphane
>
>        [[alternative HTML version deleted]]
>
>
>_______________________________________________
>R-sig-mixed-models@r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
>
>
	[[alternative HTML version deleted]]

