From 8b2e15585e50198762179738541db7e84dbdecc3 Mon Sep 17 00:00:00 2001 From: Pawel Rucki <12943682+pawelru@users.noreply.github.com> Date: Thu, 27 Nov 2025 12:00:22 +0100 Subject: [PATCH 1/3] use dev shinylive; remove temp webr automation --- .github/workflows/docs.yaml | 23 ----------------------- DESCRIPTION | 2 ++ interactive/teal.qmd | 5 ----- 3 files changed, 2 insertions(+), 28 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 7ebf6312..63481c25 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -51,29 +51,6 @@ jobs: with: to: html - # 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} - - name: Publish docs if: github.ref == 'refs/heads/main' uses: peaceiris/actions-gh-pages@v3 diff --git a/DESCRIPTION b/DESCRIPTION index 72e6f0b3..620f13fb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -58,6 +58,8 @@ Imports: Suggests: knitr, rmarkdown +Remotes: + posit-dev/r-shinylive Encoding: UTF-8 Language: en-US diff --git a/interactive/teal.qmd b/interactive/teal.qmd index 42f2a7de..39b1e842 100644 --- a/interactive/teal.qmd +++ b/interactive/teal.qmd @@ -3,11 +3,6 @@ title: "`teal` applications" order: 1 --- -```{r} -#| include: false -shinylive::assets_ensure() -``` - [`teal`](https://insightsengineering.github.io/teal/latest-tag/) is a Shiny-based framework that streamlines the process of creating an application for clinical trials data. App developers are required to specify input data as well as analysis modules choosing from a wide range of available modules or creating their own module. The main features of a `teal` app include: From 7b407db423cc07e8025bff6140ec2e5cd79a287b Mon Sep 17 00:00:00 2001 From: Pawel Rucki <12943682+pawelru@users.noreply.github.com> Date: Thu, 27 Nov 2025 12:06:02 +0100 Subject: [PATCH 2/3] Fix remote specification for shinylive in DESCRIPTION file --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 620f13fb..a2df30ec 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -59,7 +59,7 @@ Suggests: knitr, rmarkdown Remotes: - posit-dev/r-shinylive + shinylive=posit-dev/r-shinylive Encoding: UTF-8 Language: en-US From 3aeb2011b8cf302b7441f2ad811986d3acef0969 Mon Sep 17 00:00:00 2001 From: Pawel Rucki <12943682+pawelru@users.noreply.github.com> Date: Thu, 27 Nov 2025 12:21:44 +0100 Subject: [PATCH 3/3] simpler w/o pre-script (experiment) --- _quarto.yml | 2 -- interactive/prepare.R | 1 - 2 files changed, 3 deletions(-) delete mode 100644 interactive/prepare.R diff --git a/_quarto.yml b/_quarto.yml index 3a503686..d6a95cd0 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -7,8 +7,6 @@ project: watch-inputs: true navigate: true timeout: 300 - pre-render: - - interactive/prepare.R website: title: "pharmaverse examples" diff --git a/interactive/prepare.R b/interactive/prepare.R deleted file mode 100644 index b531167d..00000000 --- a/interactive/prepare.R +++ /dev/null @@ -1 +0,0 @@ -shinylive::assets_ensure()