read and import a pptx file as an R object representing the document.

read_pptx(path = NULL)

# S3 method for rpptx
print(x, target = NULL, ...)

# S3 method for rpptx
length(x)

Arguments

path

path to the pptx file to use as base document.

x

an rpptx object

target

path to the pptx file to write

...

unused

number of slides

Function length will return the number of slides.

Examples

read_pptx()
#> pptx document with 0 slide(s) #> Available layouts and their associated master(s) are: #> layout master #> 1 Title Slide Office Theme #> 2 Title and Content Office Theme #> 3 Section Header Office Theme #> 4 Two Content Office Theme #> 5 Comparison Office Theme #> 6 Title Only Office Theme #> 7 Blank Office Theme
# write a rdocx object in a docx file ---- if( require(magrittr) ){ read_pptx() %>% print(target = "out.pptx") # full path of produced file is returned print(.Last.value) }
#> [1] "officer" "ggplot2" "stringr" "purrr" "magrittr" "testthat" #> [7] "stats" "graphics" "grDevices" "utils" "datasets" "methods" #> [13] "base"