officer icon indicating copy to clipboard operation
officer copied to clipboard

how to add hyperlink for embedded image in PPT.

Open leechaowen opened this issue 3 months ago • 0 comments

how to add hyperlink for embedded image in PPT?

my part code like this. success add external img, but fail to add hyperlink.

svg_file <- file.path(R.home(component = "doc"), "html/Rlogo.svg")

my_pres <- read_pptx("myTemplate.pptx") %>%
  add_slide(layout = "EndPage", master = "Custom") %>%
  ph_with(value = external_img(svg_file, 100 / 72, 76 / 72), location = ph_location_label("logo"), use_loc_size = FALSE)
  

my_pres <-ph_hyperlink(x=my_pres,ph_label = "logo",href = "https://cran.r-project.org")

leechaowen avatar Mar 29 '24 02:03 leechaowen