ph_remove {officer} | R Documentation |
remove a shape in a slide
ph_remove(x, type = NULL, id_chr = NULL, ph_label = NULL)
x |
a pptx device |
type |
placeholder type |
id_chr |
placeholder id (a string). This is to be used when a placeholder type
is not unique in the current slide, e.g. two placeholders with type 'body'.
Values can be read from |
ph_label |
label associated to the placeholder. Use column
|
Arguments type
and id_chr
will be deprecated in the next
version of flextable.
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") slide_summary(doc) # read column ph_label here doc <- ph_remove(x = doc, ph_label = "Title 1") print(doc, target = fileout )