usethis icon indicating copy to clipboard operation
usethis copied to clipboard

Create a function to detect missing alt-text in images

Open ateucher opened this issue 1 year ago • 2 comments

It would be great to have some code to help us detect images in READMEs, vignettes, etc. that do not have alt-text. This would include R code chunks in quarto/R Markdown documents that generate images (e.g., plots), as well as images included via knitr::include_graphics) in a code chunk and in markdown via ![Alt](/path/to/img.jpg “image title”)

ateucher avatar Mar 05 '23 23:03 ateucher

Is usethis the obvious implementer of this? I'm wondering if something exists or should exist in, e.g., knitr / rmarkdown / quarto-r.

Then we would add a nudge to call this function, whoever owns it, in release and/or upkeep checklists.

jennybc avatar Apr 21 '23 19:04 jennybc

Yeah, not clear that this code would naturally belong to usethis, but not clear where else it might belong.

We could also possibly implement this in pkgdown.

hadley avatar Nov 03 '23 16:11 hadley

This would be worth some attention on tidyverse dev day, regardless of where the function would eventually live.

jennybc avatar Jul 22 '24 22:07 jennybc

pkgdown now reports on missing alt-text, so I think we can close this issue?

hadley avatar Jul 23 '24 12:07 hadley