r-lib / rlang

Low-level API for programming with R
https://rlang.r-lib.org
Other
498 stars 136 forks source link

FR: Add link to help when getting an error #1623

Closed olivroy closed 6 days ago

olivroy commented 1 year ago
library(dplyr)
mtcars %>% mutate(x)
#> Error in `mutate()`:
#> ℹ In argument: `x`.
#> Caused by error:
#> ! objet 'x' introuvable

Would it be possible that when hovering on Error in mutate() that the help hyperlink would show up like so in interactive sessions in RStudio?

cli::cli_text("{.help [{.fun mutate}](dplyr::mutate)}")