-
Notifications
You must be signed in to change notification settings - Fork 7
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
Error in plot /pdf(...): failed to load default encoding #10
Comments
Encodings in:
Settings in options(device = function(...){
pdf(...)
dev.control("enable")
}, webr.plot.new = FALSE) Using constructions of the form |
Try with canvas? Notes on setting driver options to canvas here: https://docs.r-wasm.org/webr/latest/plotting.html |
Exploring:
|
Could you post an image of the browser's network log from DevTools? Are there any downloading errors as you run the Does setting the options(device = function(...){
png(...)
dev.control("enable")
}, webr.plot.new = FALSE)
plot(1) It seems strange that OS matters here. I wonder if there is some issue with line ending in the served VFS content. |
I am trying to run a local version of webr via the JupyterLite (3.3) kernel in a self-contained package served usig flask and bundled using pyinstaller. It works well enough on a Mac, but on Windows I get an
Error: Error in pdf(...): failed to load default encoding
when I try a simple plot.Any suggestions about workarounds / fixes much appreciated.
If I run:
On both Mac and Win I get:
[1] "UTF-8" "ISO8859-1"
The text was updated successfully, but these errors were encountered: