Skip to content

Roxagyn inserts non-allowed line break in usage-section #484

@sjPlot

Description

@sjPlot

A new line is created in the usage section (when not using the @usage tag) of the .rd file, when a function name with arguments exceeds a certain line length.
This is what roygen does (new line before "<- value"):

\usage{
set_labels(x, labels, force.labels = FALSE, force.values = TRUE, drop.na = TRUE)

set_labels(x, force.labels = FALSE, force.values = TRUE, drop.na = TRUE)
  <- value
}

While the CRAN check expects the second usage in one line:

\usage{
set_labels(x, labels, force.labels = FALSE, force.values = TRUE, drop.na = TRUE)

set_labels(x, force.labels = FALSE, force.values = TRUE, drop.na = TRUE) <- value
}

Using @usage, however, works:

@usage set_labels(x, force.labels = FALSE, force.values = TRUE, drop.na = TRUE) <- value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions