Skip to content

feat: add shinylive app and modernize codebase#3

Merged
tcoroller merged 8 commits into
mainfrom
001-shinylive-modernize
Mar 27, 2026
Merged

feat: add shinylive app and modernize codebase#3
tcoroller merged 8 commits into
mainfrom
001-shinylive-modernize

Conversation

@tcoroller

Copy link
Copy Markdown
Member
  • Add Shinylive (WebAssembly) version of Shiny app in inst/shinylive-app/
  • Add pkgdown article embedding shinylive app via iframe
  • Enhance _pkgdown.yml with navbar, article sections, and reference grouping
  • Improve roxygen2 docs for app_server() and app_ui()
  • Fix app_ui() typo: with=12 corrected to width=12 (removes duplicate arg)
  • Fix incomplete paper URL in Shiny app (now links to published paper)
  • Modernize calc_predictive() and meeting_probs() to use vapply()
  • Add explicit return() in calc_predictive(), fixing silent NULL return bug
  • Remove dead commented-out code from app_server() and run_app()
  • Document hardcoded false positive rate in find_pos()
  • Align .lintr line width (80) with air.toml formatter config
  • Add tests for calc_posterior(), calc_predictive(), and meeting_probs()
  • Update test_get_pos criterion 4 to match fixed calc_predictive return
  • Update GitHub Actions: actions/checkout@v4, add shinylive export step
  • Add shinylive to Suggests, add VignetteBuilder: knitr
  • Update .Rbuildignore for CRAN compliance
  • Bump version to 0.2.0
  • Remove committed doc/ build artifacts

- Add Shinylive (WebAssembly) version of Shiny app in inst/shinylive-app/
- Add pkgdown article embedding shinylive app via iframe
- Enhance _pkgdown.yml with navbar, article sections, and reference grouping
- Improve roxygen2 docs for app_server() and app_ui()
- Fix app_ui() typo: with=12 corrected to width=12 (removes duplicate arg)
- Fix incomplete paper URL in Shiny app (now links to published paper)
- Modernize calc_predictive() and meeting_probs() to use vapply()
- Add explicit return() in calc_predictive(), fixing silent NULL return bug
- Remove dead commented-out code from app_server() and run_app()
- Document hardcoded false positive rate in find_pos()
- Align .lintr line width (80) with air.toml formatter config
- Add tests for calc_posterior(), calc_predictive(), and meeting_probs()
- Update test_get_pos criterion 4 to match fixed calc_predictive return
- Update GitHub Actions: actions/checkout@v4, add shinylive export step
- Add shinylive to Suggests, add VignetteBuilder: knitr
- Update .Rbuildignore for CRAN compliance
- Bump version to 0.2.0
- Remove committed doc/ build artifacts

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tcoroller
tcoroller marked this pull request as draft March 27, 2026 17:17
- Add R-CMD-check.yaml: runs R CMD check --as-cran on push/PR to main
  across ubuntu (devel, release, oldrel-1), macos, and windows
- Update pkgdown workflow to also trigger on PRs, building the site
  without deploying so documentation errors are caught before merge

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tcoroller tcoroller self-assigned this Mar 27, 2026
@tcoroller tcoroller added the enhancement New feature or request label Mar 27, 2026
tcoroller and others added 6 commits March 27, 2026 13:47
setup-renv@v2 fails when renv itself isn't installed because it runs its
own R process without a CRAN mirror. Switch to setup-r-dependencies@v2
which uses the repos configured by setup-r@v2 (use-public-rspm: true).
pkgdown and shinylive are added as extra packages; all other deps come
from DESCRIPTION.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
devtools is a dev-only dependency not available in CI. pkgload is the
lightweight package that actually implements load_all(); devtools simply
re-exports it. Add pkgload as an extra-package in the pkgdown workflow.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- _pkgdown.yml: add app_server and app_ui to the Shiny App reference
  section (pkgdown errors when exported topics are missing from index)
- README.md: add alt text to shiny.png (pkgdown accessibility check)

Verified clean local build before pushing.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- README.md: swap shiny.png screenshot for a direct link to the
  Shinylive app at opensource.nibr.com/monitOS/shinylive-app/
- vignettes/shinylive.Rmd: fix iframe src and fallback link from
  nicaise.github.io (stale fork URL) to correct opensource.nibr.com

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- _pkgdown.yml: add 'App' navbar entry (left side, after articles)
  linking directly to shinylive-app/index.html
- build-documentation.yml: fix deploy order — previously
  deploy_to_branch() rebuilt from scratch and discarded shinylive files.
  Now: build_site() → shinylive::export() into docs/ → git push to
  gh-pages. Both PR preview and deploy steps follow this order.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
rlang's C code references PREXPR, a symbol removed in R-devel (>=4.5).
This is an upstream issue unrelated to monitOS. Mark the R-devel matrix
entry with allow_failure: true so it doesn't block PRs, while still
running and surfacing the result.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tcoroller
tcoroller marked this pull request as ready for review March 27, 2026 18:28
@tcoroller
tcoroller merged commit 7044969 into main Mar 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant