Learn R Programming

officer (version 0.3.11)

ph_with_text: add text into a new shape

Description

add text into a new shape in a slide. This function is deprecated in favor of ph_with.

Usage

ph_with_text(x, str, type = "title", index = 1, location = NULL)

Arguments

x

an pptx object

str

text to add

type

placeholder type (i.e. 'body', 'title')

index

placeholder index (integer). This is to be used when a placeholder type is not unique in the current slide, e.g. two placeholders with type 'body', the first one will be added with index 1 and the second one with index 2. It is recommanded to use argument location instead of type and index.

location

a placeholder location object. This is a convenient argument that can replace usage of arguments type and index. See ph_location_type, ph_location, ph_location_label, ph_location_left, ph_location_right, ph_location_fullsize.