-
Notifications
You must be signed in to change notification settings - Fork 237
Closed
Labels
featurea feature request or enhancementa feature request or enhancement
Description
Rendered help files for multi-line function calls have a Usage section that look like the one (taken from for dplyr::join()):
# S3 method for class 'tbl_df'
inner_join(x, y, by = NULL, copy = FALSE,
suffix = c(".x", ".y"), ...,
na_matches = pkgconfig::get_config("dplyr::na_matches"))I think developers should potentially have control over how their Usage section is printed. In particular, to make it compliant with their style guide of choice. The tidyverse style guide would suggest to put the closing brace on a new line and only put first few unnamed arguments on the first line:
# S3 method for class 'tbl_df'
inner_join(x, y,
by = NULL, copy = FALSE,
suffix = c(".x", ".y"), ...,
na_matches = pkgconfig::get_config("dplyr::na_matches")
)I wondered about how that could be implemented in roxygen2 - with or without styler. We have discussed a styler implementation here: r-lib/styler#415.
Metadata
Metadata
Assignees
Labels
featurea feature request or enhancementa feature request or enhancement