webR: Continue initialisation even if package mounting fails #167
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A first step in handling quarto-ext/shinylive#59.
This wraps the mounting of bundled Wasm R packages in a
try()
, so that if something goes wrong (e.g. the.data
file is not there for whatever reason) we recover and continue without the package, and try to start the Shiny app anyway.This will likely be OK, since the missing package will instead be picked up from the public https://repo.r-wasm.org repo when (and if) it is actually used, which was always intended to be the fallback mode for when a required package is not included in the bundled Wasm assets.
Closes #163.