Skip to content

\Sexpr tag in Roxygen Block Causing An Error #127

@rtaph

Description

@rtaph

Hi Jim,

Thanks for your wonderful package. I use it all the time.

I added a \Sexpr tag inside of my roxygen documentation block in order to generate dynamic content in my man pages, but this is causing line 4 of extract_r_source() to return a non-NULL value. As a result, lint_package() and expect_lint_free() throw back an error for the file that contains the line #' text \Sexpr{1 + 1} more text.

I realize that the regex is not your own, as it is imported from the knitr package via knitr::all_patterns$rnw$inline code. Nevertheless, is there a way around having Roxygen blocks with \Sexpr tags from throwing this error?

Thanks in advance,

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