Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object_usage_linter fails to parse inline function output #1917

Closed
MichaelChirico opened this issue Feb 25, 2023 · 0 comments · Fixed by #1993
Closed

object_usage_linter fails to parse inline function output #1917

MichaelChirico opened this issue Feb 25, 2023 · 0 comments · Fixed by #1993
Labels
bug an unexpected problem or unintended behavior

Comments

@MichaelChirico
Copy link
Collaborator

lintr::lint("
foo <- function() s
", lintr::object_usage_linter())

Throws a warning about an internal error:

Warning message:
In parse_check_usage(fun, known_used_symbols = known_used_symbols,  :
  Possible bug in lintr: Couldn't parse usage message ‘<anonymous>: no visible binding for global variable 's'
’. Ignoring 1 usage warnings. Please report an issue at https://github.com/r-lib/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant