-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use cli::style_hyperlink()
#23
Comments
Yeah. Btw. it would be great to have source references in roxygen2 (and an api for them?), then we could jump to the source instead of the docs here. |
Another approach would be to make an url checker roclet? But that's probably too slow to run every time, so we'd need some caching. |
I think having proper source refs in roxygen2 would benefit many use cases. Nevertheless, we can still implement this, and have a link to the |
@gaborcsardi there are basic srcrefs in the roxygen2 data structure already (I don't bother storing the columns since they're most in the same place), but I don't see how we could serialize to |
Like in C:
So before every tag we would output where the tag was in the R file. Of course this could be tricky for some tags, or even impossible, but then we'll just have the file name for those, or even NA. We could just start with I does make the |
That feels like a lot of work for relatively little gain since only urlchecker would benefit from it, and it would also have to gain a bunch of new parsing code in order to make use of it. |
Aren't you describing essentially the same method here? r-lib/roxygen2#1334 (comment) |
So you can immediately jump to the problem.
The text was updated successfully, but these errors were encountered: