Skip to content

Failing @inherit leads to uninformative error #898

@msenn

Description

@msenn

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, ...) {}"
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions