Skip to content

incorrectly tagged lint "Use FALSE instead of the symbol F" #657

Closed

Description

@IndrajeetPatil

Since a couple of days, I have started to get a new lint in my CI checks (IndrajeetPatil/statsExpressions@cc00f65#commitcomment-44804914).

But I think this is unintentional, since here F refers to F-statistic

R/helpers_anova.R:134:34: style: Use FALSE instead of the symbol F.

​        statistic = ez_df$ANOVA$F[2],

                                ~^

Activity

  1. AshesITR commented on Dec 4, 2020

    @AshesITR
    Collaborator

    Thanks for reporting.
    In the mean time, you can use

    ez_df$ANOVA[["F"]][2] to work around the issue.

  2. added
    bug
    on Dec 9, 2020
  3. added this to the 3.0.0 milestone on Jan 31, 2021
  4. AshesITR commented on Jan 31, 2021

    @AshesITR
    Collaborator

    This should only concern dollar-expressions (where SYMBOLs aren't evaluated), argument names, assignments and NSE (which would be difficult to support IINM)

    No T_and_F lints should fire for

    x <- list(
      T = 42L,
      F = 21L
    )
    
    x$F <- 42L
    
    T <- "foo"
    
  5. added 2 commits that reference this issue on Feb 15, 2021
    5855b00
    24971cb
  6. added a commit that references this issue on Feb 18, 2021
    25b2e1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions