Nothing
#' Plot layout
#'
#' A thin wrapper around \code{officer::plot_layout_properties()} to plot
#' layouts for \code{R2PpptxPresentation} objects.
#' @param x \code{R2PpptxPresentation} object
#' @param layout character. Name of the layout to see properties for.
#' @export
#' @return No return value, called for side effects
plot_layout <- function(x, layout) {
pptx_obj <- officer::read_pptx(template_path(x))
officer::plot_layout_properties(pptx_obj, layout)
}
#' Get layouts
#'
#' A thin wrapper around \code{officer::layout_summary()} to get layouts for
#' \code{R2PpptxPresentation} objects.
#' @param x \code{R2PpptxPresentation} object
#' @export
#' @return An object of class \code{data.frame} with fields for the layout name
#' and the name of the slide theme (master).
get_layouts <- function(x) {
pptx_obj <- officer::read_pptx(template_path(x))
officer::layout_summary(pptx_obj)
}
#' Gets layout properties
#'
#' A thin wrapper around \code{officer::plot_layout_properties()} to get layouts
#' properties for \code{R2PpptxPresentation} objects.
#' @param x \code{R2PpptxPresentation} object
#' @param layout character. Name of the layout to see properties for.
#' @export
#' @return An object of class \code{data.frame} with fields for placeholder
#' attributes and one row per placeholder element.
get_layout_properties <- function(x, layout) {
pptx_obj <- officer::read_pptx(template_path(x))
officer::layout_properties(pptx_obj, layout)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.