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

Closed
fangly opened this issue Apr 24, 2017 · 0 comments
Closed

@inherit causes an unexpected END_OF_INPUT warning #624

fangly opened this issue Apr 24, 2017 · 0 comments
Labels
bug an unexpected problem or unintended behavior inherit 👨‍👩‍👧‍👦

Comments

@fangly
Copy link

fangly commented Apr 24, 2017

Hi,

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.

Cheers,
Florent

@hadley hadley added bug an unexpected problem or unintended behavior inherit 👨‍👩‍👧‍👦 labels Aug 16, 2017
@hadley hadley closed this as completed in 2edf481 Aug 17, 2017
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 inherit 👨‍👩‍👧‍👦
Projects
None yet
Development

No branches or pull requests

2 participants