-
Notifications
You must be signed in to change notification settings - Fork 19
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
Update webR to run R 4.4: can't install packages from a custom wasm CRAN built with R 4.4 #131
Comments
Hi, Thank for for reporting this! Indeed, your analysis looks correct. The Eventually, a version of webR will be released running R 4.4.0, we'll update Shinylive to match, and this will go away. However, I can see this will be an issue up until that point, and also going forward for users with older Shinylive deployments already in place. So, I have opened a PR in Once that PR has been cleaned up and merged, you should be able to make use of the new workflow input in your GitHub Actions file to solve this Issue. I will come back here and document the process in more detail at that point. |
I've merged r-wasm/actions#20, which allows the user to select the webR image version when building R packages for Wasm. In deploy-cran-repo:
uses: r-wasm/actions/.github/workflows/deploy-cran-repo.yml@v1
with:
webr-image: "ghcr.io/r-wasm/webr:v0.3.3" That particular fixed version of webR is running R v4.3.3, and so the R packages compiled for wasm will be built into the repo directory Hopefully, this should allow the repository to be used with Shinylive and fix the issue. Please let me know if not! |
@georgestagg I tested yesterday on the pkgdown website demos and a blog post with shinylive chunks. This seems to work well. |
@georgestagg This seems broken again since the latest shinylive update. You can test with this link |
Shinylive has been updated and is now using the latest release of webR. So, you should remove the change we discussed above that added the In general this is likely to continue to happen as Shinylive and R are updated over time. It is possible to freeze the Shinylive and R package versions in place, but to do that you’ll need to use the Shinylive R package to export the app, and then host the resulting static assets somewhere, rather than using an iframe embed of the Shinylive website. See here for more information about the Shinylive R package. |
Thx! For the code export, I guess I can wait for posit-dev/r-shinylive#92 to have a more scalable option, as I'd like to automate the process. |
I am maintaining a wasm CRAN-like which was build from GA with R4.3 few weeks ago using the
r-wasm/actions
flow from @georgestagg: https://github.com/RinteRface/rinterface-wasm-cran.I updated it and since R4.4 was released recently, my WASM repo is now built with R4.4. shinylive depends on an older webr version (webR only supports R4.4.0 since recently r-wasm/webr@28077f5). Therefore, shinylive still runs R4.3 (there are references to R4.3 such as in
webr::install
):which prevents from retrieving and installing the package from my CRAN like.
Here is the shinylive link to reproduce.
The text was updated successfully, but these errors were encountered: