Open andrjohns opened 5 months ago
Thanks - it's great to be able to call R functions from JS, but for the specific cases here I actually like using the quickjs APIs for accessing the filesystem.
Just wondering: have you taken a look at the WebR APIs for calling R from JavaScript? It might be worth looking at. It would be great if the APIs were similar, but I can also understand if the WebR APIs are more complex than what you'd want to implement for QuickJSR.
I've updated QuickJSR to add functionality for calling R functions from JS code, which could help make some of the utility functions used here a bit more robust.
For example, the current
fileExists
function:Could instead just be: