library(dplyr, warn.conflicts = FALSE)
13 WebR
13.1 Links
13.2 Testing
Following the guidance on the README of webR Extension for Quarto.
To use this extension in a Quarto project, install it from within the project’s working directory by typing into Terminal:
quarto add coatless/quarto-webr
For each document, place the webr filter in the document’s header (I actually placed it in _quarto.yml
:
filters:
- webr
Then, place the R code for webR in a code block marked with {webr-r}
. For example.
```{webr-r}
fit = lm(mpg ~ am, data = mtcars)
summary(fit)
```
Note: If you don’t specify the engine: knitr
, the default compute engine used will be jupyter. This could trigger prompts to install Python. However, if you specify engine: knitr
, there’s no need to install Python.
There are many more customization options that are available. Please see the customization documentation for more examples.
For specific deployment usage cases, please see Templates.