Skip to content

Add treescanr R package MVP, devcontainer, and CI - #1

Merged
gvegayon merged 2 commits into
mainfrom
treescanr-package
Sep 24, 2026
Merged

gvegayon merged 2 commits into
mainfrom
treescanr-package

Conversation

@gvegayon

Copy link
Copy Markdown
Member

Summary

  • Adds the treescanr R package at the repo root. The core pipeline is ts_visits() → ts_counts() → ts_run() → ts_results() (native |>, only data.table and utils as dependencies).
  • ts_counts() ports treescan_project/code/3_create_count_file.R. A tinytest integration test checks that it reproduces the legacy count file exactly on the toy data.
  • Adds a private devcontainer image, ghcr.io/epiforesite/treescanr-dev, which bundles TreeScan 2.4.1 (.devcontainer/), and an R-CMD-check workflow that runs inside it. This means the tests that call the real TreeScan binary also run in CI.
  • The legacy scripts stay in treescan_project/.

Notes

  • Inside the container, R CMD check passed locally with Status OK and all 17 tests passing, including a real TreeScan run that detects the injected A08.4 cluster.
  • The workflow pulls the private image with GITHUB_TOKEN and packages: read. This repo needs read access to the package ("Manage Actions access"). PRs from forks cannot pull the image.
  • The MIT license is a placeholder until it is confirmed against the upstream terms.

🤖 Generated with Claude Code

gvegayon and others added 2 commits September 24, 2026 00:10
- New R package `treescanr` at the repo root with a pipeable core pipeline:
  ts_visits()/ts_visits_nssp() -> ts_counts() -> ts_run() -> ts_results(),
  plus ts_prm_*() helpers for TreeScan parameter files and ts_binary().
- ts_counts() is a port of treescan_project/code/3_create_count_file.R;
  an integration test checks it reproduces the legacy output exactly.
- Toy data (subset of the 2026/2027 trees + synthetic visits) in
  inst/extdata, generated by data-raw/toy_data.R.
- tinytest integration tests, quarto README and vignette, NEWS.md.
- Private devcontainer image (ghcr.io/epiforesite/treescanr-dev) bundling
  TreeScan 2.4.1, and a GitHub Action running R CMD check inside it.
- Legacy scripts kept in treescan_project/ (README moved there).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gvegayon
gvegayon merged commit de87417 into main Sep 24, 2026
1 check passed
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