-
Notifications
You must be signed in to change notification settings - Fork 238
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorinherit 👨👩👧👦
Description
This might be a feature rather than a bug, but the following doesn't seem to work as expected. Unless I include @inherit title, @inherit description doesn't work.
Original function:
#' This is title
#'
#' This is description
#'
#' @param x x
#' @param y y
#'
#' @return numeric vector
f1 <- function(x, y) x + y
Function that will inherit f1:
#' Different title
#'
#' @inherit f1 description
#'
#' @inheritParams f1
#' @param z z
#'
#' @inherit f1 return
f2 <-function(x, y, z) x + y + z
This results in \description{} of f2 to be: "Different title". If I modify the title to @inherit f1 title, the \description{} of f2 is correctly inherited as "This is description"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorinherit 👨👩👧👦