I'm using flextable
and officer
to write a table with hyperlinked cells to a powerpoint slide, but I can't figure out how to remove the underline in the URL. Here's my code:
library(officer)
library(flextable)
library(magrittr)
# Make the table
no_ul <- fp_text(underlined = FALSE)
ft <- data.frame(x = "Hello", link = "www.google.com") %>%
flextable(col_keys = "x") %>%
compose(j = 1,
value = as_paragraph(hyperlink_text(x = x, url = link, props = no_ul))
)
# Add to a slide
my_pres <- read_pptx() %>%
add_slide() %>%
ph_with(value = ft, location = ph_location_type(type = "body"))
print(my_pres, "~/Desktop/flex_example.pptx")
When I open up "flex_example.pptx" this is the table:
How do I remove the underline of the hyperlink???? I was hoping underlined = FALSE
would do it, but no luck!
THANK YOU IN ADVANCE!!!!