print.rpptx | R Documentation |
Create a 'PowerPoint' file from an rpptx
object (created by read_pptx()
).
## S3 method for class 'rpptx'
print(x, target = NULL, preview = FALSE, ...)
x |
an |
target |
path to the .pptx file to write. If |
preview |
Save |
... |
unused. |
If preview is TRUE
, returns the temp file path invisibly.
read_pptx()
# write an rpptx object to a .pptx file ----
file <- tempfile(fileext = ".pptx")
x <- read_pptx() # empty presentation, has no slides yet
print(x, target = file)
# preview mode: save to temp file and open locally ----
## Not run:
print(x, preview = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.