Skip to content

False positive [unused_import_linter] #2042

@tonyk7440

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.

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