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

Uninformative error when leaving an empty @param #869

Closed
pierrecamilleri opened this issue Jun 6, 2019 · 4 comments
Closed

Uninformative error when leaving an empty @param #869

pierrecamilleri opened this issue Jun 6, 2019 · 4 comments
Labels
bug an unexpected problem or unintended behavior rd ✍️

Comments

@pierrecamilleri
Copy link

Hi,
Leaving an empty #' @param in a roxygen comment leads to an error with no information at all to identify the problem:
Error in FUN(X[[i]], ...) : index out of bound

I believe it could be useful to specify in which comment the error occurs in such situations.

@tbates

This comment has been minimized.

@pierrecamilleri

This comment has been minimized.

@tbates

This comment has been minimized.

@hadley hadley added bug an unexpected problem or unintended behavior rd ✍️ labels Jul 21, 2019
@hadley
Copy link
Member

hadley commented Jul 25, 2019

Minimal reprex:

library(roxygen2)
roc_proc_text(rd_roclet(), "
  #' Title
  #' @param
  #'
  #' @export
  foo <- function() {}"
)
#> Error in FUN(X[[i]], ...): subscript out of bounds

Created on 2019-07-25 by the reprex package (v0.3.0)

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 rd ✍️
Projects
None yet
Development

No branches or pull requests

3 participants