-
Notifications
You must be signed in to change notification settings - Fork 231
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
Include line information for tags in roxy_block #664
Comments
This change also breaks a very large number of unit tests. Probably worth doing, but will require careful planning. |
The first problem needs careful thought in The second problem seems to mostly be an off by one error in the C++ code (although it needs a little more thought for when the first element isn't a tag). I think the biggest payoff to roxygen2 will be to replace many uses of for (i in seq_along(tags)) {
attr(vals[[i]], "tag") <- tags[[i]]
} Alternatively, it might be worth rethinking the object structure here, and just return a list of tags. This will require touching code in a lot of places, but it's likely to be simple changes, and code coverage is good enough that we're unlikely to miss anything. |
Will also need to update extension vignette, and polish |
I've moved the description line number issue to #917, since I can now make a nice reprex for it, and tomorrow I'll be merging a massive commit to resolve this issue. |
Wow, that was a massive commit! |
That's what you get for requesting a change to the data structure at the heart of an 8 year old R package 😛 |
For ropensci/spelling#3 it would be useful to have the start line per tag in the
roxy_block()
objects which are the result ofparse_file()
. This can be done with a trivial changeHowever doing so reveals that the line numbers do not seem quite correct. Running
parse_file()
on a simple file reveals a couple of issues.The text was updated successfully, but these errors were encountered: