coatless/quarto-webr
소개
커뮤니티에서 개발한 Quarto 확장 프로그램으로, HTML 문서, RevealJS, 웹사이트, 블로그, 책에 webR을 삽입할 수 있습니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalwebR Extension for Quarto
[!IMPORTANT]
Looking for the official Quarto WebAssembly backend? Check out
quarto-live!
This community developed Quarto extension enables the webR code cell within various Quarto formats, including HTML, RevealJS, Websites, Blogs, and Books.

Take a look at a live example of the extension in action here! To delve deeper into the extension's capabilities, see our comprehensive documentation website.
Looking for a Python version? Check out quarto-pyodide!
[!NOTE] Please note that the
{quarto-webr}Quarto extension is a community-driven initiative and is not affiliated with Posit, Quarto, or the main webR project. Its evolution and maintenance stem solely from the collective efforts of community members.
Background
If you're new to webR, this cutting-edge technology empowers you to:
"run R code in the browser without the need for an R server to execute the code."
For a deeper understanding of webR, explore the following resources:
Quick Start Video Guide
For those new to Quarto and Quarto Extensions, we highly recommend checking out this informative YouTube video to get started quickly:
Installation
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

After the installation process is finished, the extension will be readily available for Quarto documents within the designated working directory. Please note that if you are working on projects located in different directories, you will need to repeat this installation step for each of those directories.
Usage
For each document, place the webr filter in the document's header:
filters:
- webr
Then, place the R code for webR in a code block marked with {webr-r}
---
title: webR in Quarto HTML Documents
format: html
engine: knitr
filters:
- webr
---
This is a webR-enabled code cell in a Quarto HTML document.
```{webr-r}
fit = lm(mpg ~ am, data = mtcars)
summary(fit)
```
The rendered document can be viewed online here.
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.
Help
For troubleshooting help, please see our troubleshooting page.
To report a bug, please add an issue to the repository's bug tracker.
Want to contribute a feature? Please open an issue ticket to discuss the feature before sending a pull request.
Tests
Three commands, fastest first. The first needs only Quarto; the other two also need npm ci.
npm run test:lua— unit tests for the Lua filter's option parsing and merging, run throughquarto pandoc lua.npm test— the above plus the render tests (assertions against real rendered HTML) and the jsdom tests for the browser helpers.npm run test:e2e— a Playwright smoke test that boots webR in a real browser and runs a code cell. It also needs a browser for Playwright, installed once withnpx playwright install chromium. CI runs it in its own job on every push and pull request, and nightly.
Acknowledgements
Please see our acknowledgements page.
Learn more
License
quarto-webr is licensed under AGPL-3.0-or-later with an exception: what you write and render with quarto-webr stays yours, along with the output, under any terms you like. See LICENSE and LICENSE-EXCEPTION.md.
관련 프로젝트 살펴보기
불러오는 중…
