knitr::opts_chunk$set(echo = TRUE)
library(gt)
library(tidyverse)

Create a table with an inserted image.

gt(tibble(a = paste0("\\includegraphics[width=0.5 in]{", test_image(), "}"))) %>%
  fmt_passthrough(columns = "a", escape = FALSE)


rstudio/gt documentation built on Nov. 2, 2024, 5:53 p.m.