roxygen2
roxygen2 copied to clipboard
Failing @inherit leads to uninformative error
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, ...) {}"
)
Thanks - the problem isn't the lack of documentation, but the lack of arguments.