gs_convert: Convert Google Slides to PNGs and a script

Description Usage Arguments Value Examples

View source: R/gs_convert.R

Description

Convert Google Slides to PNGs and a script

Usage

1
2
3
4
5
6
7
8
9
gs_convert(
  id,
  verbose = TRUE,
  PPTX = TRUE,
  auto_stub = TRUE,
  use_gs_ids = FALSE,
  use_gs_pngs = TRUE,
  ...
)

Arguments

id

File id passed to drive_download after passing through as_id

verbose

logical, indicating whether to print informative messages, passed to drive_download

PPTX

If TRUE, then the PowerPoint is downloaded as well. If this is FALSE, then the script will not be generated.

auto_stub

Should the prefix name be taken from the Google slide name? If so, 'stub' argument will be overridden in pdf_to_images

use_gs_ids

use Google slide identifiers for the naming

use_gs_pngs

Use the PNGs that Google will export with their slide deck. If FALSE, must have animation package installed.

...

Additional options to send to pdf_to_images if use_gs_pngs = FALSE

Value

A list of the images and the notes for each script

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
id = "1XoRj0pwaLI34XKZ7TljVeDHu-tbgGmXRmQa528JIwmw"
PPTX = FALSE
auto_stub = TRUE
res = gs_convert(id, use_gs_ids = TRUE, PPTX = FALSE)
res = gs_convert(id, use_gs_pngs = FALSE)
res = gs_convert(id, use_gs_pngs = TRUE, PPTX = FALSE)
res = gs_convert(id, use_gs_pngs = TRUE, use_gs_ids = TRUE,
PPTX = FALSE)

## End(Not run)

muschellij2/didactr documentation built on March 17, 2021, 12:45 p.m.