read_pptx
From officer v0.3.4
by David Gohel
open a connexion to a 'PowerPoint' file
read and import a pptx file as an R object representing the document.
Usage
read_pptx(path = NULL)# S3 method for rpptx
print(x, target = NULL, ...)
# S3 method for rpptx
length(x)
slide_size(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.
slides width and height
Function slide_size
will return the size of slides.
Examples
# NOT RUN {
read_pptx()
# write a rdocx object in a docx file ----
if( require(magrittr) ){
file <- tempfile(fileext = ".pptx")
read_pptx() %>% print(target = file)
# full path of produced file is returned
print(.Last.value)
}
# }
Community examples
Looks like there are no examples yet.