Add treescanr R package MVP, devcontainer, and CI - #1
Merged
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
treescanrR package at the repo root. The core pipeline ists_visits()→ts_counts()→ts_run()→ts_results()(native|>, onlydata.tableandutilsas dependencies).ts_counts()portstreescan_project/code/3_create_count_file.R. A tinytest integration test checks that it reproduces the legacy count file exactly on the toy data.ghcr.io/epiforesite/treescanr-dev, which bundles TreeScan 2.4.1 (.devcontainer/), and anR-CMD-checkworkflow that runs inside it. This means the tests that call the real TreeScan binary also run in CI.treescan_project/.Notes
R CMD checkpassed locally with Status OK and all 17 tests passing, including a real TreeScan run that detects the injected A08.4 cluster.GITHUB_TOKENandpackages: read. This repo needs read access to the package ("Manage Actions access"). PRs from forks cannot pull the image.🤖 Generated with Claude Code