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

Comments

@msenn
Copy link

@msenn 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
Copy link
Member

@hadley hadley commented Sep 10, 2019

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

@hadley hadley closed this in 0dce0cd Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants