You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having managed to successfully mount a VFS library, I am now on a quest to develop an Electron application under Node.js, that would use base R and some other contributed packages.
Everything works as expected, except that I am unable to load an R package even if mounting the VFS library succeeds. I put together a simple GitHUb repo for replication, on https://github.com/dusadrian/webrapp/
I have a series of questions on how to use the WebR package, commented in the file main.ts:
Line 31 with let output = await result.toArray(); does not work, unless inserting line 27. I have no idea why, at least in Typescript this is the only way I could proceed forward.
EDITED: this point is now solved, having found and read the section Typing an object
Between lines 38:41, following guidance from other issues, I first used let data = fs.readFileSync('/some/local/path/library.data'); which did not work in my case unless enveloping everything into a new Blob()
These two points are now clear, but the part I still seem to get stuck is:
on line 58, where I was supposed to load the (only) package in the mounted VFS library. Mounting works alright, since list.files() does report the package directory as per line 59.
Any further hint would be highly appreciated,
Adrian
The text was updated successfully, but these errors were encountered:
Having managed to successfully mount a VFS library, I am now on a quest to develop an Electron application under Node.js, that would use base R and some other contributed packages.
Everything works as expected, except that I am unable to load an R package even if mounting the VFS library succeeds. I put together a simple GitHUb repo for replication, on https://github.com/dusadrian/webrapp/
I have a series of questions on how to use the WebR package, commented in the file main.ts:
let output = await result.toArray();
does not work, unless inserting line 27. I have no idea why, at least in Typescript this is the only way I could proceed forward.EDITED: this point is now solved, having found and read the section Typing an object
let data = fs.readFileSync('/some/local/path/library.data');
which did not work in my case unless enveloping everything into anew Blob()
These two points are now clear, but the part I still seem to get stuck is:
list.files()
does report the package directory as per line 59.Any further hint would be highly appreciated,
Adrian
The text was updated successfully, but these errors were encountered: