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

@inherit causes an unexpected END_OF_INPUT warning #624

fangly opened this issue Apr 24, 2017 · 0 comments

@inherit causes an unexpected END_OF_INPUT warning #624

fangly opened this issue Apr 24, 2017 · 0 comments


Copy link

@fangly fangly commented Apr 24, 2017


Consider this piece of code:

#' @inherit base::file.path
catPath <- file.path

When I run devtools::document(), all goes well. However, if I then run devtools::build(), I get the following warning:

Warning: [...]/man/catPath.Rd:34: unexpected END_OF_INPUT '

In the corresponding Rd file, I have:

so as from \R 3.1.0 a trailing \code{/} or \code{\} is removed.

It seems like roxygen2 should have escaped the backslash to a double-backslash when processing the @inherit directive.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants