roxygen2 icon indicating copy to clipboard operation
roxygen2 copied to clipboard

Failing @inherit leads to uninformative error

Open msenn opened this issue 7 years ago • 1 comments

This is related to #874. The original issue was closed due to the lack of a reprex.

I got the same error message here:

library(roxygen2)
out <- roc_proc_text(rd_roclet(), "
  #' Title
  #' @inherit broom::augment
  #'
  #' @export
  foo <- function(x, ...) {}"
)
#> Error in get_tags(x, "\\arguments")[[1]] : subscript out of bounds

Fixed it as follows:

library(roxygen2)
out <- roc_proc_text(rd_roclet(), "
  #' Title
  #' @inherit generics::augment
  #'
  #' @export
  foo <- function(x, ...) {}"
)

msenn avatar Aug 29 '19 10:08 msenn

Thanks - the problem isn't the lack of documentation, but the lack of arguments.

hadley avatar Sep 10 '19 22:09 hadley