get_layout: Layout selection helper

View source: R/pptx_layout_helper.R

get_layoutR Documentation

Layout selection helper

Description

Select a layout by name or index. The master name is inferred and only required for disambiguation in case the layout name is not unique across masters.

Usage

get_layout(
  x,
  layout = NULL,
  master = NULL,
  layout_by_id = TRUE,
  get_first = FALSE
)

Arguments

x

An rpptx object.

layout

Layout name or index. Index refers to the row index of the layout_summary() output.

master

Name of master. Only required if layout name is not unique across masters.

layout_by_id

Allow layout index instead of name? (default is TRUE)

get_first

If layout exists in multiple master, return first occurence (default FALSE).

Value

A ⁠<layout_info>⁠ object, i.e. a list with the entries index, layout_name, layout_file, master_name, master_file, and slide_layout.


officer documentation built on June 8, 2025, 1:57 p.m.