-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fail to get package with repo hosted on GitHub Page #18
Comments
As discussed in #15 (comment), we changed the default so that package dependencies are not included in a CRAN-like repo by default. It's possible the I am able to make your repository work by including the default webR binary repository as a fallback for all the dependent packages. webr::install(
"shinyMobile",
repos = c("https://rinterface.github.io/rinterface-wasm-cran/", "https://repo.r-wasm.org")
)
|
The goal here was to put and try a development version of shinyMobile, that is 2.0.0. The official wasm CRAN points to 1.0.1 that is the latest CRAN release and not the version I need. |
This works on the webR demo (https://webr.r-wasm.org/latest/) But not on from shinylive. Trying with incognito mode, clearing browser cache does not change anything. |
There's some strange behaviour in shinylive, my wild guess is that it's something related to timing. We can make it work, but there are specific steps needed:
This way it is using the 2.0.0: But refreshing the shinylive page and directly using this code (without letting it fail first):
Will return 1.0.1 |
Thank you both for this great debugging information! I now know what is going wrong. In Shinylive, there is some startup code to search for dependencies in an app and automatically install them before the app has loaded. With this, users do not need to know about For the moment, while far from ideal, there should be a workaround in removing the automatically installed version of webr::unmount("/usr/lib/R/library/shinyMobile")
webr::install(
"shinyMobile",
repos = c("https://rinterface.github.io/rinterface-wasm-cran/", "https://repo.r-wasm.org")
) Hopefully, we can get this fixed either by introducing some way to list repositories for automatic package download or by making |
Thanks George! |
Below is what I did for a recent project:
{shinyMobile}
from the provided url: https://rinterface.github.io/rinterface-wasm-cran/. Demo shinylive app is hereI can download the packages and run the app with the correct package version
This used to work in the past months. Roughly 4 months ago I setup the same infrastructure on a non CRAN package and could download it from the wasm CRAN: BristolMyersSquibb/webr-repos@d05444f). This other setup is now also broken.
My understanding is that upload page artifact is in beta and evolving so things might have changed.
The text was updated successfully, but these errors were encountered: