-
Notifications
You must be signed in to change notification settings - Fork 16
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
Load R package binaries from relative URL #121
Merged
georgestagg
merged 12 commits into
posit-dev:main
from
georgestagg:relative-package-binaries
Apr 18, 2024
Merged
Load R package binaries from relative URL #121
georgestagg
merged 12 commits into
posit-dev:main
from
georgestagg:relative-package-binaries
Apr 18, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
georgestagg
force-pushed
the
relative-package-binaries
branch
3 times, most recently
from
March 26, 2024 14:00
f839217
to
4a63e63
Compare
georgestagg
force-pushed
the
relative-package-binaries
branch
from
April 4, 2024 13:00
431ef3a
to
2dfc401
Compare
This might be revisited later, but to simplify deployment from a Quarto document we'll load `metadata.rds` from URL, rather than embedding it in `app.json`.
georgestagg
force-pushed
the
relative-package-binaries
branch
from
April 9, 2024 09:35
81a23a2
to
0028089
Compare
schloerke
approved these changes
Apr 17, 2024
Co-authored-by: Barret Schloerke <barret@posit.co>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Includes #82.
Required as part of posit-dev/r-shinylive#63.
Adds the virtual VFS path
/shinylive/webr/packages
to the.libPaths()
and attempts to mount Wasm R package binaries there using webR'swebr::mount()
API with a relative URL.If no R package binary image exists at the URL, it will fallback to the current behaviour: using the default webR package repository with
webr::install()
.In the end, the following directories are in the search path, in order of preference:
/usr/lib/R/library
- Base R packages, and packages explicitly downloaded from a Wasm package repository./shinylive/webr/packages
- Packages bundled with the app, as decided byr-shinylive
at build time./shinylive/library
- Packages bundled with Shinylive.Keeping these libraries separated allows for masking in the case where custom/newer/development versions of packages are required by a Shinylive app.