Skip to contents

Delegates to deckifyr inspect in the bundled Python engine. The target type is detected from its file extension: a .yaml/.yml presentation reports its resolved slide plan (element counts/types, notes), while a .pptx reports its real, opened-back-up shape structure (per slide: shape names/types, rotation, notes) plus a summary of its sibling <stem>.manifest.json, if one exists.

Usage

deck_inspect(
  target,
  rscript_bin = NULL,
  quarto_bin = NULL,
  soffice_bin = NULL,
  trusted_binaries_only = FALSE,
  allow_outside_project = FALSE
)

Arguments

target

Path to a presentation.yaml or a built .pptx.

rscript_bin, quarto_bin, soffice_bin

Run this executable instead of whatever presentation.yaml's build.reportifyr.flextable.binary, build.quarto.binary or build.preview.binary says (NULL, the default, keeps the project file's own setting). For a launcher that treats project files as untrusted user data (deckifyr.policy).

trusted_binaries_only

If TRUE, a project file that names a non-default binary (and no override was given for it) fails with E_UNTRUSTED_BINARY before anything runs, and design.base, layouts, build.output, build.manifest and build.reportifyr's paths must stay inside the project (E_PATH_OUTSIDE_PROJECT). Default FALSE: existing projects behave exactly as before.

allow_outside_project

With trusted_binaries_only = TRUE, let those paths resolve outside the project (e.g. a shared organization design). Default FALSE.

Value

A parsed list from the CLI's JSON output.

Examples

if (FALSE) { # \dontrun{
deck_inspect("presentation.yaml")
deck_inspect("build/my-deck.pptx")
} # }