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
JazzyPierrot opened this issue Jun 6, 2019 · 4 comments
Closed

Uninformative error when leaving an empty @param #869

JazzyPierrot opened this issue Jun 6, 2019 · 4 comments

Comments

@JazzyPierrot
Copy link

@JazzyPierrot JazzyPierrot commented Jun 6, 2019

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 hidden.

@JazzyPierrot

This comment has been hidden.

@tbates

This comment has been hidden.

@hadley
Copy link
Member

@hadley 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants