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

sprintf_linter() fails on complex input #2131

Closed
MichaelChirico opened this issue Sep 10, 2023 · 0 comments · Fixed by #2132
Closed

sprintf_linter() fails on complex input #2131

MichaelChirico opened this issue Sep 10, 2023 · 0 comments · Fixed by #2132
Labels
bug an unexpected problem or unintended behavior
Milestone

Comments

@MichaelChirico
Copy link
Collaborator

Found in r-devel:

https://github.com/r-devel/r-svn/blob/5da93fa94cd61d510acff8e8975e429a68c839d8/src/library/base/R/all.equal.R#L228-L229

lintr::lint("src/library/base/R/all.equal.R", lintr::sprintf_linter())
# Error: Linter 'sprintf_linter' failed in /usr/local/google/home/chiricom/svn/r-devel/src/library/base/R/all.equal.R: <text>:1:65: unexpected symbol
# 1: sprintf("Class definitions are not identical%s",if(isTRUE(ae))""elsepaste
@MichaelChirico MichaelChirico added bug an unexpected problem or unintended behavior regression code that used to work, but now doesn't labels Sep 10, 2023
@MichaelChirico MichaelChirico added this to the 3.1.1 milestone Sep 10, 2023
@MichaelChirico MichaelChirico removed the regression code that used to work, but now doesn't label Sep 11, 2023
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