Skip to content

<% a %> in knitr source code #185

@gaborcsardi

Description

@gaborcsardi

lintr fails on knits with this:

Error in grep(pattern$chunk.begin, lines, perl = TRUE) :
  invalid 'pattern' argument

To reproduce:

cat("'<% a %>'\n", file = tmp <- tempfile());
lintr::lint(tmp)
#> Error in grep(pattern$chunk.begin, lines, perl = TRUE) :
#>   invalid 'pattern' argument

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions