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 April 29, 2024, 10:37 p.m.