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

inheritDotParams can lead to multiple "..." arguments #857

Closed
gustavdelius opened this issue Apr 13, 2019 · 1 comment
Closed

inheritDotParams can lead to multiple "..." arguments #857

gustavdelius opened this issue Apr 13, 2019 · 1 comment

Comments

@gustavdelius
Copy link
Contributor

@gustavdelius gustavdelius commented Apr 13, 2019

If @inheritDotParams and @inheritParams are both used together, one does not want to end up with two ... in the argument list. But currently

#' Foo
#'
#' @inheritParams bar
#' @inheritDotParams baz
foo <- function(x, ...) {}

#' Bar
#'
#' @param x x
#' @param ... Unused
bar <- function(x, ...) {}

#' Baz
#'
#' @param y y
#' @param z z
baz <- function(y, z) {}

produces the following argument list for foo:

\arguments{
  \item{x}{x} \item{...}{unused} \item{...}{Arguments passed on
  to \code{baz} \describe{ \item{y}{y} \item{z}{z} }}
}

The extra \item{...}{Unused} should not be there.

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

Successfully merging a pull request may close this issue.

None yet
3 participants