posit-dev / r-shinylive

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

feat: Build resources relative to Quarto project root #130

Closed georgestagg closed 1 month ago

georgestagg commented 2 months ago

Avoids downloading the same R package(s) many times when using the shinylive extension in a Quarto project with multiple documents in subdirectories.

Fixes https://github.com/quarto-ext/shinylive/issues/61.

A fallback of "." (corresponding to the current behaviour) is set incase the QUARTO_PROJECT_DIR environment variable is ever unset.

schloerke commented 1 month ago

Related: https://github.com/quarto-dev/quarto-cli/blob/4f4132844b5764d21d188ad9cba52a0fd5917a17/src/project/serve/serve.ts#L220

schloerke commented 1 month ago

Thank you!