read_pptx {officer} | R Documentation |
read and import a pptx file as an R object representing the document.
read_pptx(path = NULL) ## S3 method for class 'rpptx' print(x, target = NULL, ...) ## S3 method for class 'rpptx' length(x) slide_size(x)
path |
path to the pptx file to use as base document. |
x |
an rpptx object |
target |
path to the pptx file to write |
... |
unused |
Function length
will return the number of slides.
Function slide_size
will return the size of slides.
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) }