-
Notifications
You must be signed in to change notification settings - Fork 317
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
Move callr and friends to Suggests #1596
base: main
Are you sure you want to change the base?
Conversation
This will probably break packages that have
on CRAN. |
An alternative would be to qualify all calls with |
Which is already the case AFAICT:
|
It is currently not possible to install callr, ps, and processx. It might be possible without too many changes but I haven't investigated it yet. At the moment I am trying to make testthat work (it causes webR to freeze).
Could we fall back to serial testing if callr is not installed? |
Maybe, but they are not interchangeable. In general it would be better to have a solution that does not break people's current workflows. Which is possible, I think. E.g. we can change processx etc. to install cleanly in webR, and fail for the function calls. If you don't want to deal with this now, I guess you can use your testthat branch that does not have callr? |
yes there is no hurry, webr-repo currently uses this branch. |
Btw. there is this thing: https://browsix.org/ that handles |
yup but browsix is basically unmaintained and unused. The WASI folks seem interested in process launching and IPC the long term but there is currently not much interest in the wasm community, so we're probably years away of a working solution. It seems the best approach would be to specially handle the case of calling back to R by instantiating a new emscripten module in a web worker, but it's not clear how we can make them share the same virtual filesystem. |
Btw. if you set the |
This branch fixes issues at install time rather than runtime: https://github.com/lionel-/webr-repo/blob/7f0c7bb7337b9071bf3952cb8e779b52b91f201a/install.R#L6 |
To make webR support easier until we figure out callr.