Skip to content

Conversation

@pawelru
Copy link
Collaborator

@pawelru pawelru commented Nov 27, 2025

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:

  • upgrade shinylive quarto extension
  • use devel version of shinylive R package
  • use pre-script to upgrade shinylive assets UPDATE: not needed. devel shinylive pulls the newest assets automatically - no need for being explicit on this

I 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)

  ─ Session info 
  ─ Packages ───────────────────────────────────────────────────────────────────
   (...)
   shinylive               0.3.0.9000 2025-11-27 [1] Github (posit-dev/r-shinylive@0179e31)
   (...)
ℹ Downloading shinylive assets v0.10.6
✔ Downloading shinylive assets v0.10.6 [2.3s]

On main (but not that one commit that I pushed accidentally) (link)

  ─ Packages ───────────────────────────────────────────────────────────────────
   (...)
   shinylive               0.3.0      2024-11-12 [1] CRAN (R 4.5.2)
   (...)
ℹ Downloading shinylive assets v0.9.1
✔ Downloading shinylive assets v0.9.1 [1.6s]

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.

Comment on lines -54 to -76
# 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}

Copy link
Collaborator Author

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

Copy link
Collaborator Author

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

Comment on lines -6 to -10
```{r}
#| include: false
shinylive::assets_ensure()
```

Copy link
Collaborator Author

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

Comment on lines -10 to -11
pre-render:
- interactive/prepare.R
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clean-up

Comment on lines +61 to +62
Remotes:
shinylive=posit-dev/r-shinylive
Copy link
Collaborator Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

teal article with Shiny live: '404 File not found' error message

2 participants