add_create_slide_page_request {rgoogleslides} | R Documentation |
Add a create slide request
Description
Add a create slide request
Usage
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:
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
## 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)