-
Notifications
You must be signed in to change notification settings - Fork 17
use dev shinylive; remove temp webr automation #119
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
base: main
Are you sure you want to change the base?
Conversation
| # temporary! | ||
| # remove this step if closed (& relleased): https://github.com/quarto-ext/shinylive/issues/59 | ||
| - name: Remove large WebR assets 🧹 | ||
| run: | | ||
| packages_path <- sprintf("./_site/site_libs/quarto-contrib/shinylive-%s/shinylive/webr/packages", shinylive::assets_version()) | ||
| # remove the dirs with size > 100 MB | ||
| for (x in list.dirs(packages_path)) { | ||
| x_files <- file.info(list.files(x, full.names = TRUE)) | ||
| if (any(x_files$size > 100 * 1024^2)) { | ||
| print(x) | ||
| print(x_files) | ||
| unlink(x, recursive = TRUE) | ||
| } | ||
| } | ||
| # refresh the `metadata.rds` file | ||
| metadata_path <- file.path(packages_path, "metadata.rds") | ||
| metadata <- readRDS(metadata_path) | ||
| new_metadata <- metadata[intersect(names(metadata), list.dirs(packages_path, full.names = FALSE))] | ||
| saveRDS(new_metadata, metadata_path) | ||
| shell: Rscript {0} | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean-up: not needed anymore as the issue was closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean-up after my mistakenly pushed commit to main
| ```{r} | ||
| #| include: false | ||
| shinylive::assets_ensure() | ||
| ``` | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean-up after my mistakenly pushed commit to main
| pre-render: | ||
| - interactive/prepare.R |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean-up
| Remotes: | ||
| shinylive=posit-dev/r-shinylive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the main fix!
closes #108
First of all, this PR should also include one more commit that I accidentally pushed directly to main: f5e6c47. Sorry about that! My oversight!
List of changes:
use pre-script to upgrade shinylive assetsUPDATE: not needed. devel shinylive pulls the newest assets automatically - no need for being explicit on thisI think that it might be connected to posit-dev/r-shinylive#157. There is a comment that it got fixed on Sept (link) but the latest release of this package is from Nov 2024 which means that we need to use devel version. If we use the devel version we can also use newer assets (which might include the fix - I don't really know where it's fixed: package or assets) - we can't use newer assets using released version of package
Difference:
last build on feature branch (link)
On main (but not that one commit that I pushed accidentally) (link)
Unfortunately we can't really check if it works as we don't deploy from feature branch. Hence I would suggest to merge as is and let's check if it works. We can continue from there.