Skip to content

library_call_linter() doesn't allow suppressed library() calls #2163

Closed

Description

@MichaelChirico
lint("
suppressMessages({
  library(a)
  library(b)
})
",
library_call_linter())
# <text>:3:3: warning: [library_call_linter] Move all library calls to the top of the script.
#   library(a)
#   ^~~~~~~~~~
# <text>:4:3: warning: [library_call_linter] Move all library calls to the top of the script.
#   library(b)
#   ^~~~~~~~~~
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

    false-positivecode that shouldn't lint, but does

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions