quarto-webr v0.1.0 Released - Options Galore

software-releases
r
Author

TheCoatlessProfessor

Published

April 11, 2023

The latest version of quarto-webr, v0.1.0, seeks to allow for document-level options to be set. By setting these options, users can control the behavior of webR directly from the document’s YAML header without needing to know JavaScript. We’ve also added a new feature to show the status of the webR initialization process in the document header. This release is in conjunction with the release of webR v0.1.1.

For more details on the changes, please see the news entry below

quarto-webr news file entry for version 0.1.0 (2023-04-11)

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: ''.
  • 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

New status lighting

GitHub Changelog