Closed olivroy closed 1 year ago
cli already allows this, e.g. it works in my terminal. But RStudio does not allow it: https://github.com/rstudio/rstudio/issues/11273
Here are the rules I got from the linked thread + experimentation, since I believe those are not documented yet :
The reason as I understand it is that the hyperlink could have dangerous behavior, like removing files or objects, so for instance we forbid base so you can't rm()
. You might wrap rm()
in a custom function but then the function would have to be in an attached package so it's somewhat safer, though it seems to me it's quite easy to hack around those measures.
Closing as cli cannot do anything about this.
Hi,
I was wondering if it would be possible to allow base functions to have hyperlinks.
It would be handy if
worked.
The workaround I found is to create my own package and to wrap
base::names()
function in it, so I can do this.with
Thanks for the great package!
Actually I use this as I override the tibble printing method. When a data frame is long, I like to have a clickable hyperlink to display the names of the last value.