Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing @inherit leads to uninformative error #898

Closed
msenn opened this issue Aug 29, 2019 · 1 comment
Closed

Failing @inherit leads to uninformative error #898

msenn opened this issue Aug 29, 2019 · 1 comment
Labels
bug an unexpected problem or unintended behavior inherit 👨‍👩‍👧‍👦
Milestone

Comments

@msenn
Copy link

msenn commented Aug 29, 2019

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, ...) {}"
)
@hadley hadley added bug an unexpected problem or unintended behavior inherit 👨‍👩‍👧‍👦 labels Sep 10, 2019
@hadley hadley added this to the v6.2.0 milestone Sep 10, 2019
@hadley
Copy link
Member

hadley commented Sep 10, 2019

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

@hadley hadley closed this as completed in 0dce0cd Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior inherit 👨‍👩‍👧‍👦
Projects
None yet
Development

No branches or pull requests

2 participants