Skip to content

Could the augment() ... is not maintained ... message print at most once per session, please #1101

@russHyde

Description

@russHyde

Feature

In situations when we call augment() on an ANOVA model, a warning prints out to explain that augment() is not maintained by {broom}. But the message prints out everytime that augment() is called on an ANOVA model, even if the warning message has previously been shown. Would it be possible to ensure that the warning message for a given class of model is shown at most one time in a given R session

packageVersion("broom")
[1] ‘0.8.0’

library("broom")

a <- rnorm(10)
b <- rep(c("x", "y"), each = 5)
m <- aov(a ~ b)

augment(m)
# A tibble: 10 × 8
< ... snip ...>
Warning message:
The `augment()` method for objects of class aov is not maintained by the broom team, and is only supported through the lm tidier method. Please be cautious in interpreting and reporting broom output.

augment(m)
# A tibble: 10 × 8
<... snip ...>
Warning message:
The `augment()` method for objects of class aov is not maintained by the broom team, and is only supported through the lm tidier method. Please be cautious in interpreting and reporting broom output.

# Could that second message be hidden, since it has already been printed out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions