ropensci / spelling

Tools for Spell Checking in R
https://docs.ropensci.org/spelling
Other
107 stars 25 forks source link

Support clickable hyperlinks to spelling errors #81

Open olivroy opened 6 months ago

olivroy commented 6 months ago

Fixes #74

Supersedes #75

Using a different approach, with most of the code change occurring in the print method.

However, to make it a bit more efficient and less clunky, I need the full file names.. The function looks ugly, but I tried using the existing output as much as possible. I built my method based on the following nested data frame / structure.

  tibble::tibble(
     file = c("file1", "file2"),
     word = list(file1 = c("aa", "bb"), file2 = c("cc")),
     line = list(file1 = list(aa = c(1, 3), bb = c(1)), file2 = list(cc = c(1, 2)))
 )

Let me know if you prefer this approach!

Example output Capture d’écran, le 2024-03-10 à 5 48 05 p m

olivroy commented 3 months ago

@jeroen Just a friendly reminder! Let me know if you want me to rework this