quarto-webr Demo RevealJS Document

Welcome

Welcome to a demo RevealJS presentation that uses the quarto-webr extension to generate interactive code cells with Quarto and webR.

Important

This template requires Quarto 1.4.554 or greater, which carries the updated copy of pandoc it depends on. That copy first shipped in the 1.4.502 pre-release, so no pre-release download is needed any more; these examples are built with Quarto 1.10.18. For more details, please see Issue #14.

Not the right template? Let’s go back to the documentation portal

webR in RevealJS

This is a webR-enabled code cell in a Quarto RevealJS document.

Base R Graphing with webR

ggplot2 in webR

Help Documentation

Prints, Warnings, and Errors

Keyboard Shortcuts

  • Run selected code using either:
    • macOS: + ↩︎/Return
    • Windows/Linux: Ctrl + ↩︎/Enter
  • Run the entire code by clicking the “Run code” button or pressing Shift+↩︎.

Embedded Slides

You can embed the slide deck inside of a Quarto Website or Book by using:

<style>
.slide-deck {
    border: 3px solid #dee2e6;
    width: 100%;
    height: 475px;
}
</style>

<div>
```{=html}
<iframe class="slide-deck" src="path/to/presentation/"></iframe>
```
</div>

Note

Avoid using within a RevealJS presentation. Only 1 instance of webR should be running.

Fin

Thanks for checking out the demo! Let’s head back to the documentation portal.