r-wasm / webr

The statistical language R compiled to WebAssembly via Emscripten, for use in web browsers and Node.
https://docs.r-wasm.org/webr/latest/
Other
805 stars 54 forks source link

Update plotting.qmd - bad import in code example "Capturing Plots" #377

Closed drgomulka closed 3 months ago

drgomulka commented 4 months ago

The code for the example "Capturing Plots" throws the error "Uncaught ReferenceError: WebR is not defined". https://docs.r-wasm.org/webr/latest/plotting.html#capturing-plots The line import { Console } from 'https://webr.r-wasm.org/latest/webr.mjs'; should be: import { WebR } from 'https://webr.r-wasm.org/latest/webr.mjs';

georgestagg commented 3 months ago

Thanks!