knitr icon indicating copy to clipboard operation
knitr copied to clipboard

Feature request: Use hyperlinks when quitting (errors in qmd / Rmd)

Open olivroy opened this issue 1 year ago • 5 comments

Hi, I was wondering if there could be some hyperlinks like the cli styled hyperlinks when there are errors knitting

Example Quitting from lines 492-501 (file.Rmd/qmd) Error: ....

Would it be possible to make 492 clickable in the Background Jobs tab? That way, it would only require one click to go to the location of the error.

olivroy avatar Jul 29 '22 16:07 olivroy

This is definitely something we plan to have a look into following the new support in the IDE for this.

cderv avatar Jul 29 '22 19:07 cderv

Yes, we'll add support for that. Thanks for the suggestion!

yihui avatar Jul 29 '22 20:07 yihui

Follow recommandations at https://cli.r-lib.org/reference/links.html#files

cderv avatar Mar 01 '23 10:03 cderv

Possibly URL have been deactivated when inside R Markdown context (https://github.com/r-lib/cli/issues/581) so maybe it won't work of we need to find a way to reactivate it. Need to try cc @hadley

cderv avatar Mar 01 '23 19:03 cderv

I think this probably needs to start with the IDE team, because IIRC, clickable urls don't work in the render pane.

hadley avatar Mar 01 '23 21:03 hadley