webr
webr copied to clipboard
The statistical language R compiled to WebAssembly via Emscripten, for use in web browsers and Node.
The `webR.read()` API should be available as an [async iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols), so that one can use [`for await ... of`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of) syntax directly. See https://github.com/r-wasm/webr/issues/519#issuecomment-2742923017 for an example where this would have...
Hi, I'm having troubles with self-hosting webR. The following works: ```js const webR = new WebR() await webR.init() await webR.evalR(`webr::install('readxl')`) const buff = await file.arrayBuffer() //file created previously let arr...
Hi I was wondering why the version installed on webr is older than the CRAN version of this package? Is there anything the package owner needs to do at their...
Notwithstanding closed issue https://github.com/r-wasm/webr/issues/169 (reading from sf system package), I am seeing the following error trying to read a downloaded kml file. The code runs as expected in a "full"...
e.g. either via callbacks or providing events to be subscribe to. Further discussion in #511.
Hi, I followed the instructions from the [r-wasm 0.2.0](https://r-wasm.github.io/rwasm/articles/mount-fs-image.html) website. I used a Docker image to build the Wasm R packages, closely following the instructions. I managed to build several...
Hello! Could you provide rename from https://emscripten.org/docs/api_reference/Filesystem-API.html#FS.rename May be It will be easier for you than do it ``` public async renameFile(oldPath: string, newPath: string) { try { const fileData...
Hi, please tell me why when I use this.webr.FS.lookupPath(path) where path is some non-existent path - I get an error instead of, say, null or undefined. Because of this, I...
Related to https://github.com/posit-dev/shinylive/issues/188. It would be awesome to have some webr example for offline usage using service workers (or maybe workbox, to overcome caching resources from different domains).
Hello, I've been able to create a Emscripten’s filesystem image with a small CRAN-like repo with a few R packages (haven and jsonlite) and mount from the local filesystem using...