Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add hyperlink for embedded image in PPT. #563

Closed
leechaowen opened this issue Mar 29, 2024 · 1 comment
Closed

how to add hyperlink for embedded image in PPT. #563

leechaowen opened this issue Mar 29, 2024 · 1 comment
Labels

Comments

@leechaowen
Copy link

leechaowen commented Mar 29, 2024

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")
@davidgohel
Copy link
Owner

that was a bug, thanks, it should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants