-
Notifications
You must be signed in to change notification settings - Fork 186
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
<% a %> in knitr source code #185
Comments
This looks to be because in knitr the brew pattern has only an inline pattern, not a chunk start or end. FWIW In devel lintr you can now pass strings directly to lintr::lint("'<% a %>'\n")
#> <text>:1:1: style: Only use double-quotes.
#> '<% a %>'
#> ^~~~~~~~~
#> <text>:2:1: style: Trailing blank lines are superfluous.
#>
#> ^ |
Thanks! Btw. Do you need to use those patterns for parsing? I haven't looked much, but in reneral it would be great to parse without them, or at least not everything.
But then how do I lint my files whose name ends with a newline? :P |
I don't mind the lints, just the errors.... Anyway, maybe I'll take a look, I'll pick up goodpractice soon again, and will do some lintr related stuff. |
lintr fails on knits with this:
To reproduce:
The text was updated successfully, but these errors were encountered: