Skip to content

\Sexpr tag in Roxygen Block Causing An Error #127

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

Closed
rtaph opened this issue Dec 27, 2015 · 3 comments
Closed

\Sexpr tag in Roxygen Block Causing An Error #127

rtaph opened this issue Dec 27, 2015 · 3 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@rtaph
Copy link

rtaph commented Dec 27, 2015

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,

@jimhester jimhester added the bug an unexpected problem or unintended behavior label Dec 30, 2015
@jimhester
Copy link
Member

Thanks for the report, I will see what can be done.

@gaborcsardi
Copy link
Member

Yeah, I see this, too...

@jimhester
Copy link
Member

Ok should be fixed now, sorry for the lengthy delay 😄

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

No branches or pull requests

3 participants