| Title: | R Markdown Output Formats for Storytelling |
|---|---|
| Description: | R Markdown output formats based on JavaScript libraries such as 'Scrollama' (<https://github.com/russellsamora/scrollama>) for storytelling. |
| Authors: | Yihui Xie [aut, cre] (ORCID: <https://orcid.org/0000-0003-0645-5666>, URL: https://yihui.org), Siqi Zhang [ctb], Russell Goldenberg [ctb] (The JS library inst/resources/scrollama/scrollama.min.js) |
| Maintainer: | Yihui Xie <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.2 |
| Built: | 2026-05-23 00:05:43 UTC |
| Source: | https://github.com/yihui/rolldown |
Include the Scrollama JS library in the HTML output from R Markdown.
scrollama(...) scrollama_sidebar(..., template = pkg_resource("html", "scrollama-side.html")) scrollama_setup( options = list(step = ".section, img, video, embed", offset = 0.5) )scrollama(...) scrollama_sidebar(..., template = pkg_resource("html", "scrollama-side.html")) scrollama_setup( options = list(step = ".section, img, video, embed", offset = 0.5) )
..., template
|
Arguments to be passed to |
options |
A list of initialization options for Scrollama. |
scrollama() and scrollama_sidebar() return R Markdown output
formats; scrollama_setup() is a helper function to return the JavaScript
code for initializing Scrollama.
The Scrollama library: https://github.com/russellsamora/scrollama.
rolldown::scrollama_setup(list(step = ".level1", offset = 0.2))rolldown::scrollama_setup(list(step = ".level1", offset = 0.2))