Skip to content

@inherit causes an unexpected END_OF_INPUT warning #624

@fangly

Description

@fangly

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions