posit-dev / r-shinylive

https://posit-dev.github.io/r-shinylive/
Other
166 stars 17 forks source link

Avoid `LinkingTo` dependencies in package resolution #115

Closed georgestagg closed 3 months ago

georgestagg commented 3 months ago

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 https://github.com/quarto-ext/shinylive/issues/59 for discussion.

c.f. https://github.com/r-wasm/webr/pull/463