Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

drgomulka
Copy link
Contributor

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';

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 georgestagg merged commit c58c609 into r-wasm:main Mar 8, 2024
3 checks passed
@georgestagg
Copy link
Member

Thanks!

@drgomulka drgomulka deleted the patch-1 branch March 8, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants