[R] How do I force confint() for glm() to be quiet?

Hans Ekbrand hans at sociologi.cjb.net
Fri Mar 9 15:38:06 CET 2012


On 2012-03-09 15:30, David Winsemius wrote:
>
> On Mar 9, 2012, at 6:14 AM, Hans Ekbrand wrote:
>
>> I need confint() for glm() to supress the messages
>
> I'm wondering if suppressMessages would be helpful? Which in turn 
> suggests that you do not know how to use "??", so firt you should get 
> in the habit of doing a helpSearch before posting.
>
> ??"suppress messages"
OK, noted.
>
>>
>> "Waiting for profiling to be done..."
>>
>> because they mess up the caching mechanism of pgfSweave (see
>> https://github.com/cameronbracken/pgfSweave/issues/40).
>>
>> I have read the help page of confint(), but I do not know how to get
>> the help page for the glm() version, if any such help page exists.
>
> When I type ?confint.glm at my console I get this help page:
Ah, I tried ?confint.lm without success and didn't go further.
> If suppressMessages is not effective then look at:
>
> ?sink
OK, but since suppressMessages works, I'll stick to that.

> Grrrr. A _minimal_ example would have had fewer iterations,
Sorry.
> but this does seem to be effective:
>
> suppressMessages(my.results <- confint(my.fit))
>
Thanks!



More information about the R-help mailing list