Open
Description
Hi, I'm having troubles with self-hosting webR.
The following works:
const webR = new WebR()
await webR.init()
await webR.evalR(`webr::install('readxl')`)
const buff = await file.arrayBuffer() //file created previously
let arr = new Uint8Array(buff);
await webR.FS.writeFile("data.xlsx", arr)
const res = await webR.evalRRaw('readxl::excel_sheets("data.xlsx")', 'string[]')
DevConsole shows that the following repo is used: https://webr.r-wasm.org/0.4.2/
But hosting webR locally triggers some strange error. With:
const webR = new WebR({baseUrl: "https://localhost:9000/webr/bin/"})
I get no network error, all webR dependancies are loaded successfully.
But I get an error without message when executing the readxl line:
To host webR binairies, I simply put the whole webr/dist of the 0.4.2 release into a directory accessible from: https://localhost:9000/webr/bin
Http headers have been set to allow SharedArrayBuffer, but switching to PostMessage channelType makes no difference.
Is there any difference between the last release and the remote webr binaries fetched by default that could explain this?