官員有一個功能可以創建演示文稿內部幻燈片的鏈接。不過,我不知道如何從可用的例子中使用它。我從來沒有看到實際的超鏈接出現在下面例如: - 的例子ph_slidelink - 不知道如何使用它?
fileout <- tempfile(fileext = ".pptx")
doc <- read_pptx()
doc <- add_slide(doc, layout = "Title and Content", master = "Office Theme")
doc <- ph_with_text(x = doc, type = "title", str = "Un titre 1")
doc <- add_slide(doc, layout = "Title and Content", master = "Office Theme")
doc <- ph_with_text(x = doc, type = "title", str = "Un titre 2")
doc <- on_slide(doc, 1)
slide_summary(doc) # read column id here
doc <- ph_slidelink(x = doc, id_chr = "2", slide_index = 2)
print(doc, target = fileout)
在這裏,我沒有看到任何鏈接2頁出現在任何位置... 你能幫我一個頁面?謝謝!!
好的,我會添加該選項 –