Skip to content
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

Mounting file systems for shinylive apps running via Node.js #46

Open
seanbirchall opened this issue Jan 13, 2024 · 2 comments
Open

Mounting file systems for shinylive apps running via Node.js #46

seanbirchall opened this issue Jan 13, 2024 · 2 comments

Comments

@seanbirchall
Copy link

The webr documentation on mounting is super helpful. Will it be possible to mount a file system from the host machine using NODEFS and make that file system accessible to a shinylive app?

@seanbirchall seanbirchall changed the title Mounting files systems for shinylive apps running via Node.js Mounting file systems for shinylive apps running via Node.js Jan 14, 2024
@schloerke
Copy link
Collaborator

@georgestagg . Thoughts?

@georgestagg
Copy link
Collaborator

Sorry, this is not possible right now with shinylive.

The NODEFS filesystem type is designed for use with webR running under Node.js. Since shinylive is running directly in a web browser, NODEFS cannot be used.

There is a web-based File System API designed for allowing access to local files from the host machine, but browser support is still a little patchy (there are also some other technical blockers for using this in webR, unrelated to shinylive).

In the future, when these roadblocks have been removed, it's possible this could be added to webR's mounting API, but it's not currently planned in the short term. Instead, we will be focusing on improving shinylive's integration with Emscripten's WORKERFS filesystem images for mounting user packages and data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants