Skip to content

Setting Options in Document YAML

Compare
Choose a tag to compare
@coatless coatless released this 11 Apr 09:26
· 155 commits to main since this release
7c605ee

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