posit-dev / r-shinylive

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

Restore short R version in r-wasm repo URLs #111

Closed georgestagg closed 3 months ago

georgestagg commented 3 months ago

For a previous version of webR, we required the full R version to be included as part of r-wasm repo URLs for Emscripten ABI compatability reasons. This was a temporary measure and is no longer required for the latest release of webR.

This PR restores the original short R versioning in repo.r-wasm.org URLs, matching the base R and r-universe behaviour.

The TODO mentioned combining two functions (one for r-wasm, the other for r-universe) but I've decided not to in case we diverge again in the future. Instead, I've just abstracted out the logic for showing a warning message when native and Wasm package versions don't match.

Fixes #110.