library(officer)
library(flextable)
library(tidyverse)
x <- read_pptx()
data_flex <- flextable(iris)
y <- add_slide(x, layout='Title Slide') %>%
ph_with(value=data_flex,
location=ph_location(left=0.5, top=0.5),
alt_text = 'alt text test')
print(y, target='iris.pptx')
I've created automated powerpoint reports for work, and am now being required to add alt-text to charts and tables for ADA accessibility. The officer documentation shows an alt_text argument, but I haven't been able to get it to work. I've tried it as text, c(), and list(), but nothing seems to work. Are there any examples of how to use this argument?