add_create_slide_page_request: Add a create slide request

Description Usage Arguments Examples

View source: R/build.R

Description

Add a create slide request

Usage

1
2
3
4
5
6
7
add_create_slide_page_request(
  google_slides_request = NULL,
  insertion_index = NULL,
  layout_id = NULL,
  predefined_layout = NULL,
  object_id = NULL
)

Arguments

google_slides_request

(Optional) A Google Slides Request object which is used to manage requests to the API

insertion_index

(Optional) A numeric vector on where the slide is to be added. If this value is not provided, the new slide will be added at the end of the slides.

layout_id

(Optional) A character vector that provides guidance on which layout the new slide is to follow. Either layout id or predefined layout will be used to create the template for the new slide. If layout id was not provided, a blank predefined layout will be provided instead.

predefined_layout

(Optional) A character vector that provides guidance on which layout the new slide is to follow. Some of the values that would be available is as follows:

  • BLANK

  • CAPTION_ONLY

  • TITLE

  • TITLE_AND_BODY

  • TITLE_AND_TWO_COLUMNS

  • TITLE_ONLY

  • SECTION_HEADER

  • SECTION_TITLE_AND_DESCRIPTION

  • ONE_COLUMN_TEXT

  • MAIN_POINT

  • BIG_NUMBER

The default value for this parameter is BLANK

object_id

(Optional) A character vector that is to be used to give names to new slides created via the slides API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
library(rgoogleslides)
rgoogleslides::authorize()

# Define the presentation slide id (Can be retrieved from the url of the slides)
slides_id <- "<slide-id>"

requests <- add_create_slide_page_request()
commit_to_slides(slides_id, requests)

requests2 <- add_create_slide_page_request(predefined_layout = "TITLE")
commit_to_slides(slides_id, requests2)

## End(Not run)

rgoogleslides documentation built on March 13, 2020, 2:32 a.m.