Bindings to the 'Tree-Sitter' Parsing Library
Overview
A runtime for the 'Tree-sitter' parsing library https://tree-sitter.github.io/tree-sitter/ that mirrors the API of the 'treesitter' package, so it can serve as a drop-in replacement. Parses source code into concrete syntax trees and updates them incrementally as the source changes. Grammars are supplied by separate packages such as 'treesitter.r', so the runtime itself depends on nothing beyond base R.
Resubmission after CRAN's incoming pretest of 0.1.1, which stopped on the
"pragmas suppressing diagnostics" NOTE.
- Remove the
#pragma GCC diagnostic ignoredblocks, and their MSVC counterparts, from the bundledlib/src/array.handlib/src/wasm_store.c. Both files compile without warnings without them. Recorded as patch 3 insrc/tree-sitter/PATCHES.md. No other source changed.
From NEWS.md in the release
Install
Health
- OK13 OKNow
- OK5 OK2026-09-18
Documentation
- Help pages
- 51 (1 internal)includes a package overview page
- Examples that run
- 100%50 run in a plain check (48 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 94%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- not measured
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/cornball-ai/bonsaisitter on 2026-10-21.
The R CMD check workflow runs on Linux and macOS
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-03-02Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: .claude, CLAUDE.mdCommits: at least 2 crediting it in the message
- Claude CodePull requests: 2 from outside contributors, first on 2026-09-07
- Claude Fable 5.12 commits · Sep 2026
Dependencies
Installing bonsaisitter adds no packages beyond those that come with R.
Code & Tests
People & History
- 0.1.2Latest2026-09-17 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-09-17
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Copyright
- cornball.ai, except the bundled tree-sitter sources under src/tree-sitter, whose holders are listed in inst/COPYRIGHTS.
- Download size
- 192 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("bonsaisitter")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.