Description Usage Arguments Examples
Add a create slide request
1 2 3 4 5 6 7 |
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 |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.