Skip to content

object_usage_linter() tries too many assignments #1322

@AshesITR

Description

@AshesITR

Seen in our own package when running lint_package():

..........Warning in formals(fun) : argument is not a function
Warning in body(fun) : argument is not a function
Warning in formals(fun) : argument is not a function
Warning in body(fun) : argument is not a function
...................................................Warning in formals(fun) : argument is not a function
Warning in body(fun) : argument is not a function
................................................................................................................................................

The reason is the XPath for object_usage_linter() finds e.g.

assign(
    envir = cache,
    x = digest_content(linters, filename),
    value = lints,
    inherits = FALSE
  )

which is not a function assignment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions