Skip to content

False positive in missing_package_linter for symbol #1037

Description

@MichaelChirico
lintr::lint("loadNamespace(package)\n", lintr::missing_package_linter())

lints:

<text>:1:1: warning: Package 'package' is not installed.
loadNamespace(package)
^~~~~~~~~~~~~~~~~~~~~~

As seen in our own code:

lintr/R/with.R

Line 112 in 36236c3

pkg_ns <- loadNamespace(package)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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