-
Notifications
You must be signed in to change notification settings - Fork 8
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
Cannot deploy due to BH_1.84.0-0.data
file size
#59
Comments
Currently some R packages for Wasm are very large. This is the result of a design decision introduced in webR in the interest of improving loading times for most (much smaller!) packages, at the cost of storing uncompressed package data. I'm currently thinking about how to improve the situation for packages that do compress particularly well, such as BH. The issue tracking that is at r-wasm/webr#460 For now, it looks like these assets are too large for GitHub, and we don't currently have a mechanism to handle that. You unfortunately cannot simply delete the When exporting apps using the shinylive R package, you can export the app without bundling packages: shinylive::export("myapp", "site", wasm_packages = FALSE) This means the app won't ship with any bundled WebAssembly R package binaries. This would solve the problem in the short term, but unfortunately I can't see a simple way to export with this option set from Quarto documents. So, there are several things we need to do here:
|
Thank you for a very detailed explanation and transforming this into more actionable backlog items. I'm looking forward for all of them, especially the one in I have read the source code a little, did some reverse engineering and came up with the following:
This will look into the |
Yes, that should work OK as long as there are no entires in If you find you need |
I don't understand why the package is so large, though. On CRAN, the source package is about 13MB, the Mac binary package is about 12MB, and the Windows binary package is about 20MB. @georgestagg Would it be possible to special-case |
It contains a copy of Boost, which is gigantic. Since it's just a bunch of text in C++ template files it compresses really, really well though. GitHub Pages won't compress I think you're right. IIUC |
In addition to the other work to avoid bundling and downloading packages only in the With this, even older shinylive deployments that request
|
Closed by posit-dev/r-shinylive#115. |
Hello.
I have encountered a following problem when trying to deploy by pushing changes to
gh_pages
branch:BH
is needed foranytime
linkanytime
is needed forShinyWidgets
linkThis is an indirect dependency of the app code so I can't really control this.
Can you please advise what can be done with it? Can we safely remove a package and expect it to be downloaded on the client side? How to do this?
The text was updated successfully, but these errors were encountered: