Skip to content

False positive [unused_import_linter] #2042

Description

@tonyk7440

It seems like when using a function inside a glue() call, this lintr doesn't recognise a function is being used.
An example

library(praise)

glue::glue(
  "Hi Team,
          
          {praise()}  

          All the best"
)

Which is flagged as
[unused_import_linter] Package 'praise' is attached but never used.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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