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

Avoid LinkingTo dependencies in package resolution #115

Merged
merged 2 commits into from
Aug 2, 2024
Merged

Conversation

georgestagg
Copy link
Collaborator

@georgestagg georgestagg commented Aug 2, 2024

Packages listed under LinkingTo are required for building dependent packages, but not loading them at runtime.

So, we can ignore these R packages when we're looking for dependencies to bundle with a webR+shinylive app. In webR 0.4.1, these packages will also be ignored when invoking webr::install(), and I'm told the native install.packages() already does the same.

See quarto-ext/shinylive#59 for discussion.

c.f. r-wasm/webr#463

Packages listed under LinkingTo are required for building dependent
packages, but not at runtime as they are header-only or statically
linked libraries.

So, we can ignore these packages when we're looking for dependencies to
bundle for webR. In webR 0.4.1, these packages will also be ignored
when invoking `webr::install()`.
Copy link
Contributor

@gadenbuie gadenbuie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Edit: probably worth a mention in the NEWS

@georgestagg georgestagg merged commit b14bea1 into main Aug 2, 2024
12 checks passed
@georgestagg georgestagg deleted the no-linkingto branch August 2, 2024 13:30
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

Successfully merging this pull request may close these issues.

2 participants