Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Images in table cells #383
Workaround for Latex is here https://stackoverflow.com/questions/38555040/alignment-of-images-in-tables-with-markdown-rstudio-and-knitr but it won't work if you'll import knitr and then kableExtra. Without kableExtra it is difficult to change column width etc.
I am not sure if this answers your question but I have achieved this by pre-rendering the image, then adding a new column for the image eg:
If you want specific images for specific rows, it possible by saving the image as the row number eg: 1.png and then having the image_file_name as nrow(table1):
If it is a static image that does not need to change, you can always:
gsub(pattern = "",
to replace all instances of "" with the image file name and when you render the table ensure you have format as "html" and escape = F.