Skip to content

feat: merge rpptx objects #718

@markheckmann

Description

@markheckmann

Feature

The author of this stackoverflow question asked for a way to merge presentations, i.e. rpptx objects. I also had a few times, where this would have been handy.

In some cases, the implementation may not be that easy, for example, if presentations have different master layouts. This may be tricky, but I think we would not need to cover all edge cases.

@davidgohel If you agree, I could implement this ( I already started).

Example

p1 <- read_pptx()
p1 <- add_slide(p1, layout = "Title Slide", ctrTitle = "Presentation 1")

p2 <- read_pptx()
p2 <- add_slide(p2, layout = "Title and Content", title = "Presentation 2")

p3 <- read_pptx()
p3 <- add_slide(p3, layout = "Two Content", title = "Presentation 3")

# concatenate
pp <- pptx_concat(p1, p2, p3)

# same using c()
pp <- c(p1, p2, p3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions