Skip to content

Commit bcd69ff

Browse files
committed
Prepare release
1 parent 41e2de3 commit bcd69ff

File tree

5 files changed

+35
-46
lines changed

5 files changed

+35
-46
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: TreeTools
22
Title: Create, Modify and Analyse Phylogenetic Trees
3-
Version: 2.1.0.9009
3+
Version: 2.2.0
44
Authors@R: c(
55
person("Martin R.", 'Smith', role = c("aut", "cre", "cph"),
66
email = "martin.smith@durham.ac.uk",

NEWS.md

Lines changed: 27 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,42 @@
1-
# TreeTools 2.1.0.9009 (2026-03-18) #
1+
# TreeTools 2.2.0 (2026-03-18) #
22

3-
- `RCurl` moved from Imports to Suggests; `ReadMrBayesTrees()` uses
4-
`RCurl::url.exists()` when available, falling back to base R `url()` for
5-
URL checks.
6-
7-
# TreeTools 2.1.0.9008 (2026-03-17) #
8-
9-
- `PhyDatToMatrix()` no longer crashes on zero-character `phyDat` objects
10-
(e.g. from a star tree); returns a 0-column matrix with correct row names.
11-
- `AddUnconstrained()` handles zero-character `phyDat` input gracefully.
12-
13-
# TreeTools 2.1.0.9007 (2026-03-13) #
14-
15-
- `duplicated.Splits()` uses hash-based O(n) de-duplication, replacing
16-
O(n²) pairwise comparison.
17-
18-
# TreeTools 2.1.0.9006 (2026-03-13) #
19-
20-
- `NodeDepth()` for unrooted trees rewritten as O(n) two-pass C++ algorithm,
21-
replacing iterative R while-loop.
22-
23-
# TreeTools 2.1.0.9005 (2026-03-13) #
24-
25-
- `SplitFrequency(reference = NULL)` performance improvements:
26-
split normalization moved to C++; internal split de-duplication uses
27-
hash map instead of ordered map.
28-
29-
# TreeTools 2.1.0.9003 (2026-03-09) #
3+
## New functionality
304

31-
- `inst/include/TreeTools/tree_number.h` added to support downstream packages
32-
(e.g. TBRDist) via `LinkingTo: TreeTools`. Provides 256-bit tree number
33-
encoding/decoding supporting up to 51 leaves, extended from the 44-leaf
34-
limit of the previous `uint64_t`-based implementation.
5+
- `EdgeRatio()` reports the ratio of external:internal edges.
6+
- `SplitInformation()` supports `Splits` and `phylo` objects.
7+
- `sort` and `order` support `Splits` objects.
8+
- `SplitFrequency(reference = NULL)` returns frequency of all splits.
359
- `as.TreeNumber()` now supports trees with up to 51 leaves (previously 19).
3610
Trees with 20–51 leaves have more than 2^64 distinct topologies, so their
3711
`TreeNumber` is stored as a decimal character string rather than `integer64`.
3812
The 19-leaf limit for `integer64`-backed storage (and `as.MixedBase()`
3913
round-trips) is unchanged.
4014
- `as.TreeNumber()` no longer warns for trees with 20–44 leaves.
15+
- `inst/include/TreeTools/tree_number.h` added to support downstream packages
16+
(e.g. TBRDist) via `LinkingTo: TreeTools`. Provides 256-bit tree number
17+
encoding/decoding supporting up to 51 leaves, extended from the 44-leaf
18+
limit of the previous `uint64_t`-based implementation.
4119

42-
# TreeTools 2.1.0.9001 (2026-02-19) #
20+
## Performance
4321

44-
- `EdgeRatio()` reports the ratio of external:internal edges.
22+
- `SplitFrequency(reference = NULL)`: split normalization moved to C++;
23+
internal split de-duplication uses hash map instead of ordered map.
24+
- `NodeDepth()` for unrooted trees rewritten as O(n) two-pass C++ algorithm,
25+
replacing iterative R while-loop.
26+
- `duplicated.Splits()` uses hash-based O(n) de-duplication, replacing
27+
O(n²) pairwise comparison.
4528

46-
# TreeTools 2.1.0.9000 (2026-02-16) #
29+
## Fixes
4730

48-
- `SplitInformation()` supports `Splits` and `phylo` objects.
49-
- `sort` and `order` support `Splits` objects.
50-
- `SplitFrequency(reference = NULL)` returns frequency of all splits.
31+
- `PhyDatToMatrix()` no longer crashes on zero-character `phyDat` objects
32+
(e.g. from a star tree); returns a 0-column matrix with correct row names.
33+
- `AddUnconstrained()` handles zero-character `phyDat` input gracefully.
34+
35+
## Dependencies
36+
37+
- `RCurl` moved from Imports to Suggests; `ReadMrBayesTrees()` uses
38+
`RCurl::url.exists()` when available, falling back to base R `url()` for
39+
URL checks.
5140

5241

5342
# TreeTools 2.1.0 (2026-02-10) #

R/zzz.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ release_questions <- function() {
2828
# Check valgrind results on Github Actions
2929
# revdepcheck::revdep_check()
3030
#
31-
# codemetar::write_codemeta()
31+
# codemeta::write_codemeta()
3232
#
3333
# tools::resaveRdaFiles("R", compress="auto") - is default bzip2 the optimal?
3434
# tools::checkRdaFiles("R") - set optimal compression in `data-raw`

codemeta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"codeRepository": "https://github.com/ms609/TreeTools/",
99
"issueTracker": "https://github.com/ms609/TreeTools/issues/",
1010
"license": "https://spdx.org/licenses/GPL-3.0",
11-
"version": "2.1.0.9009",
11+
"version": "2.2.0",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",
1515
"url": "https://r-project.org"
1616
},
17-
"runtimePlatform": "R version 4.5.3 (2026-03-11)",
17+
"runtimePlatform": "R Under development (unstable) (2025-11-23 r89052 ucrt)",
1818
"provider": {
1919
"@id": "https://cran.r-project.org",
2020
"@type": "Organization",
@@ -275,7 +275,7 @@
275275
},
276276
"SystemRequirements": "C++17"
277277
},
278-
"fileSize": "1849.728KB",
278+
"fileSize": "1881.301KB",
279279
"citation": [
280280
{
281281
"@type": "SoftwareSourceCode",
@@ -290,7 +290,7 @@
290290
],
291291
"name": "TreeTools: create, modify and analyse phylogenetic trees",
292292
"identifier": "10.32614/CRAN.package.TreeTools",
293-
"description": "R package version 2.1.0.9009",
293+
"description": "R package version 2.2.0",
294294
"@id": "https://doi.org/10.32614/CRAN.package.TreeTools",
295295
"sameAs": "https://doi.org/10.32614/CRAN.package.TreeTools"
296296
}

cran-comments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Test environments
22

33
* Local PC:
4-
- Windows 10, R devel
4+
- Windows 11, R devel
55

66
* [GitHub Actions](https://github.com/ms609/TreeTools/actions)
77
- Ubuntu latest
@@ -19,4 +19,4 @@ There were no ERRORs or WARNINGs or NOTEs.
1919
## Downstream dependencies
2020

2121
Reverse dependencies have been checked using "revdepcheck" on
22-
[GitHub Actions](https://github.com/ms609/TreeTools/actions/workflows/revdep.yml).
22+
[GitHub Actions](https://github.com/ms609/TreeTools/actions/workflows/R-CMD-check.yml).

0 commit comments

Comments
 (0)