Skip to content

Allow @inheritDotParams to pull params from implementation (e.g. mutate.data.frame) like @inheritParams #1840

@orgadish

Description

@orgadish

?dplyr::mutate
Image

Testing using dev roxygen2@head 7a1dd39

@inheritParams is able to access the .by parameter, but @inheritDotParams is not (see examples below). Note: one workaround could be to specify @inheritDotParams dplyr:::mutate.data.frame but that didn't work either, with error:

In topic 'baz2': @inheritDotParams failed to find topic "dplyr:::mutate.data.frame" in current package.In topic 'baz2': @inheritDotParams failed.No arguments inherited from `dplyr:::mutate.data.frame()`.

The goal of this is to enable RStudio auto-completion of tidylog::mutate to dplyr::mutate.data.frame parameters. See elbersb/tidylog#77 for more information.

Reprex:

#' Foo
#'
#' @inheritParams dplyr::mutate
foo <- function(.data, .by = NULL, ...) { }

?foo
Image
#' Bar
#'
#' @inheritDotParams dplyr::mutate
bar <- function(.data, ...) { }

?bar
Image
#' Baz
#'
#' @inheritParams dplyr::mutate
#' @inheritDotParams dplyr::mutate
baz <- function(.data, ...) { }

?baz
Image

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