ThinkR-open / checkhelper

A package to help deal with devtools::check outputs
https://thinkr-open.github.io/checkhelper/
Other
34 stars 4 forks source link

`find_missing_tags()` ignores inherited `@return` #84

Open DanChaltiel opened 8 months ago

DanChaltiel commented 8 months ago

Hi,

Here is a reprex:

#' Function X
#' @inherit y return
#' @export
x = function() 1

#' Function Y
#' @return a value
#' @export
y = function() 1
> checkhelper::find_missing_tags()
ℹ Loading crosstable
Problem: Missing or empty return value for exported functions: x

Moreover, the .rd file generated during the process is wrong and doesn't include the returned value, unlike devtools::document().