Skip to content

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

@gustavdelius

Description

@gustavdelius

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions