Releases: coatless/quarto-webr
Releases · coatless/quarto-webr
Across the webR-Verse to v0.2.0
Feature
- Implements changes required to run
webR
v0.2.0
Demo, Demo, Demo!
Bug fix
- Attempted to resolve missing service workers for published Quarto webR enabled documents on https://quarto.pub
Deployment
- Added a GitHub actions website deployment workflow to generate sample pages.
- Added a
devcontainer.json
for development on GitHub - Added a script to update the version of Quarto used inside of the
devcontainer.json
.
Accessibility with the Monaco Editor
Breaking Changes
- We've transitioned the code editor used in the
quarto-webr
extension to Monaco Editor from CodeMirror for improved accessibility.- Special thanks go out to JooYoung Seo (Website) for identifying the accessibility issue and submitting a pull request to incorporate the editor.
Features
- Code editing areas on the Quarto document now use the Monaco Editor for improved accessibility.
- Execute code using keyboard shortcuts:
- Run selected code using:
[Cmd + Enter]
on macOS or[Ctrl+Enter]
on Windows - Run the entire code area using:
[Shift+Enter]
- Run selected code using:
- Dynamically growing code editor as new lines are added.
- Announcing the status changes of webR initialization states through arias.
Setting Options in Document YAML
Features
- Upgraded the version of webR to use v0.1.1.
- Set options directly inside the document's YAML header to control webR:
- Support is available for setting the following WebR.WebROptions options:
home-dir
: The WebAssembly user’s home directory and initial working directory (Documentation
). Default:'/home/web_user'
.base-url
: The base URL used for downloading R WebAssembly binaries. (Documentation
). Default:'https://webr.r-wasm.org/[version]/'
.service-worker-url
: The base URL from where to load JavaScript worker scripts when loading webR with the ServiceWorker communication channel mode (Documentation
). Default:''
.
- Support is available for setting the following WebR.WebROptions options:
- webR initialization status stages are now described and shown as stoplights (inspired by Bob Rudis)
show-startup-message
: Display in the document header the state of WebR initialization. Default:true
show-header-message
: Display in the document header whether COOP and COEP headers are in use for faster page loads. Default:false
Execute webr cells when developing in VS Code or RStudio
Breaking Changes
- We've transitioned to using the
{webr-r}
code cell designation from our original{webr}
designation.- The
{webr-r}
tag allows for code cell evaluation prior to rendering the document - Moreover, the
{webr-r}
component does not need to be registered under theknitr
compute engine.
- The
Please update code cells from:
```{webr}
```
To:
```{webr-r}
```
Escape Escape!
Bugfix
- Escape characters
\
are further escaped.
```{webr}
add_one <- \(x) x + 1
add_one(2)
```
Should now appear in a webR code cell as:
add_one <- \(x) x + 1
add_one(2)
Documentation
- Added details on how to host webR content
- Added additional examples and details in the
webr-demo.qmd
file.
All about that margin
Bug Fixes
- Fixed the error of
figure margins too large
due to canvas sizing issues. - Removed the attempt to switch between
/
and''
if COOP and COEP are not present. Defaults to relative directory.