Creates a slide reference object that can be used to target a specific slide in a Google Slides presentation. Accepts either a slide ID or a full Google Slides URL.
Usage
on_slide_id(id, ps)
on_slide_url(url, ps)
on_slide_number(n, ps)
on_slide_after(slide, offset = 1, ps)
on_slide_with_notes(text, exact = TRUE, on_multiple = c("error", "return"), ps)Arguments
- id
A slide identifier. Can be either:
A numeric slide ID
A string containing slide ID
A full Google Slides URL
- ps
A presentation object
- url
A URL pointing to a Google Slides slide
- n
A numeric slide ID
- slide
A slide object
- offset
A position integer - the number of slides after the reference slide. Can be negative to return slides before the reference slide
- text
A string to search for in slide speaker notes. By default
exact = TRUE, the notes must equaltextexactly. Pass astringr modifierobject (e.g.stringr::regex(...),stringr::fixed(...),stringr::coll(...)astextto use a different matching strategy.- exact
Logical. When
TRUE(default) the full notes string must equaltext. WhenFALSE, the notes need only containtext(matched as a Perl-compatible regular expression via stringr::regex().- on_multiple
What to do when multiple slides match:
error: (default) raises an error listing the matching slide numbersreturn: returns all matches as a named list of slide objects (names are slide IDs)