-
Notifications
You must be signed in to change notification settings - Fork 7
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
Versions not matching between WebR repository and Quarto page #22
Comments
I think this issue over on the shinylive Github repo is related: posit-dev/shinylive#131 |
I've merged #20, which allows you to select the webR image version when building your R package for Wasm. In - name: Build WASM R packages
uses: r-wasm/actions/build-rwasm@v1
with:
packages: "."
repo-path: "_site"
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 fix the issue. Please let me know if not! |
Thanks for looking into this so quickly. I updated my GitHub actions but am getting this error:
The run log is here: https://github.com/jbryer/WebRBookTemplate/actions/runs/9270561119/job/25503863687 |
Thank you for the run log, that's very useful! I've made a further tweak to the script, could you please try once more using the same GitHub Actions script for me? |
Thank you so much George. That resolved the issue with building and loading the package. I see a different problem now, not sure if you have any idea. I am trying to embed a shiny app where the UI and server functions are defined in the package. When I load this page: https://jbryer.github.io/WebRBookTemplate/ I get this error (you can see the full context by viewing the JavaScript console):
If I preview the Quarto site locally it loads just fine. Am I doing something that is not allowed? |
To provide some additional context, if I deploy the app standalone to the same Github pages repo, it works:
|
Sorry to spam this thread but wanted to provide an update. It works fine in Google Chrome but not Safari. |
No worries, that's what the threads are for.
At the risk of using "it works on my machine", your app does seem to be running OK in Safari for me and I don't see that particular error in my JS console. Perhaps you are seeing a cached version of your published Quarto document? Can you try clearing your Safari browser cache and loading the published page again? |
Thanks for your help. I tried it in a private window and the shiny app loads. I'll close this. Great work BTW, really appreciate it. |
Sorry if this is not the correct place to post this. I am trying to setup a Github repository for an R package that will be used in a Quarto book. I have implemented Shiny applications within the R package (see https://github.com/jbryer/WebRBookTemplate/blob/master/R/loess_shiny.R for example). I am trying to embed this within my Quarto book site using shinylive (see this page: https://github.com/jbryer/WebRBookTemplate/blob/master/book/index.qmd).
I have a couple of Github actions here to create a WebR repository and create the Quarto book adapted from another action for pkgdown. It seems I am almost there except the Wasm build is building for version 4.4 (https://github.com/jbryer/WebRBookTemplate/tree/gh-pages/bin/emscripten/contrib/4.4) and the Quarto website is looking for version 4.3 (according to the JavaScript console
preload error:Warning: unable to access index for repository https://jbryer.github.io/WebRBookTemplate/bin/emscripten/contrib/4.3:
). Is there a way to either 1. Have Wasm build multiple versions or 2. Make the two actions use the same version?Thanks so much for any help you can provide.
The text was updated successfully, but these errors were encountered: