Skip to content

Modernize package for CRAN v1.0.3#13

Merged
ald0405 merged 4 commits into
masterfrom
modernize-v1.0.3
May 21, 2026
Merged

Modernize package for CRAN v1.0.3#13
ald0405 merged 4 commits into
masterfrom
modernize-v1.0.3

Conversation

@ald0405
Copy link
Copy Markdown
Owner

@ald0405 ald0405 commented May 21, 2026

Summary

Bring SangerTools out of its 2022-era state into a CI-verifiable, modern CRAN-ready shape. No exported API changes — same functions, same arguments, same bundled datasets.

  • Tests: full testthat (edition 3) suite covering every exported function and bundled dataset (previously: zero tests).
  • CI: R-CMD-check.yaml expanded to a {macOS, Windows, Ubuntu} x {R-release, R-devel, R-oldrel-1} matrix using r-lib/actions/*@v2. New test-coverage.yaml (covr + Codecov) and pkgdown.yaml (deploys to gh-pages).
  • Docs: new vignettes/demo-data-and-functions.Rmd walks through all three bundled datasets and exercises every exported function in one notebook. pkgdown reference grouped into Analytics / Wrangling / Charts / I/O / Datasets via _pkgdown.yml.
  • df_to_sql(): added @details block clarifying that the function targets Microsoft SQL Server via ODBC under Windows integrated security. No code change.
  • Metadata: DESCRIPTION bumped to Version: 1.0.3, Depends: R (>= 3.5.0) (was 2.10), RoxygenNote: 7.3.2, added URL / BugReports, added pkgdown and covr to Suggests.
  • README: dead AppVeyor badge removed; added R-CMD-check, codecov, pkgdown, lifecycle, AGPL badges; new link to pkgdown site and the demo vignette.
  • NEWS: 1.0.3 section added.
  • cran-comments.md: refreshed with the new CI matrix; final numbers to be filled in once this PR is green.
  • Misc: .Rbuildignore updated; .lintr and codecov.yml added; README.md removed from .gitignore (it was incorrectly ignored).

Test plan

CI does the verification — that's the whole point of this PR.

  • R-CMD-check matrix all green (5 jobs).
  • test-coverage workflow uploads to Codecov successfully.
  • pkgdown workflow builds and (on merge to master) deploys to https://ald0405.github.io/SangerTools/.
  • Spot-check cran-comments.md and fill in the matrix result line once green.
  • After merge, optional: trigger an rhub::rhub_check() cloud run to cover CRAN flavours not in the GitHub matrix (Fedora-clang, Debian-clang) before submitting.
  • When ready to ship: devtools::release() or devtools::submit_cran() manually — CRAN requires a human form upload.

🤖 Generated with Claude Code

ald0405 and others added 4 commits May 21, 2026 13:54
- Add testthat (edition 3) suite covering every exported function and
  bundled dataset; no code changes to exports.
- Expand R-CMD-check workflow to a macOS/Windows/Ubuntu matrix across
  R-release, R-devel and R-oldrel-1.
- Add test-coverage workflow (covr + Codecov) and pkgdown workflow that
  deploys https://ald0405.github.io/SangerTools/ on push to master.
- Add new demo-data-and-functions vignette walking through all bundled
  datasets and every exported function in one notebook.
- Document that df_to_sql() targets SQL Server via ODBC under Windows
  integrated security (behaviour unchanged).
- Refresh README badges: drop dead AppVeyor, add R-CMD-check, codecov,
  pkgdown, lifecycle.
- Bump declared minimum R version from 2.10 to 3.5.0 and RoxygenNote to
  7.3.2.
- Add URL, BugReports, _pkgdown.yml, codecov.yml, .lintr.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
master_patient_index$Age is stored as double in the bundled .rda; only
check is.numeric() rather than expect_type "integer".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Add render-notebook workflow that knits
vignettes/demo-data-and-functions.Rmd into
notebooks/demo-data-and-functions.md (GitHub-flavoured Markdown, with
embedded figures) and commits the rendered output back to the same
branch on every push that touches the vignette. README now links to the
rendered notebook so reviewers can browse it directly on github.com.

notebooks/ is in .Rbuildignore so the rendered output does not ship in
the CRAN tarball.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ald0405 ald0405 merged commit 14e3626 into master May 21, 2026
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.

1 participant