Skip to content

cli hyperlinks with style_hyperlink() no longer seem to work #4968

Answered by jennybc
olivroy asked this question in Q&A
Discussion options

You must be logged in to vote

I did a lot of research on file hyperlinks when working on #2413. I think the best outside authority to consult is RFC 8089 The "file" URI Scheme:

https://datatracker.ietf.org/doc/html/rfc8089

I don't really see any support for relative paths in such links. Leading up to now, I think it's fair to say that cli hyperlinks and RStudio support of said hyperlinks sort of co-evolved to perhaps handle nonstandard hyperlinks or to go beyond the standard. So this may not be an area where Positron implements 100% of what RStudio does. Positron will likely stick close to the standard.

My guess is that, if you are creating a hyperlink yourself, your code should look like this to have the best chance …

Replies: 8 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@olivroy
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@jennybc
Comment options

jennybc Oct 9, 2024
Collaborator

@olivroy
Comment options

@olivroy
Comment options

@jennybc
Comment options

jennybc Oct 10, 2024
Collaborator

@olivroy
Comment options

Comment options

You must be logged in to vote
3 replies
@olivroy
Comment options

@jennybc
Comment options

jennybc Oct 10, 2024
Collaborator

Answer selected by olivroy
@olivroy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants