version 2.0.1

This update contains two minor bugfixes.

  1. Some of the unit tests use random numbers, one of those unit tests looking at the function combine.twosamples failed to consider default (desired) behavior for some possible values of those random numbers, and would occasionally fail. This was a minor issue that would not negatively impact any users, except that it would occasionally cause a CRAN check to fail, which could cause trouble. This update aims to fix the test, leaving all actual functionality unchanged, so that there should not be further CRAN check failures from this issue.
  2. Removed “C++11” from “System Requirements” – as per current CRAN guidelines. The presence of C++11 as a requirement caused a note for R-CMD-Check in R4.3.0 and up. Currently, the lack of such a requirement does not affect compilation on any tested systems.

version 2.0.0

This is a large update. Three big changes:

  1. Substantial speed improvements – should improve both absolute speed and scaling
  2. Added generics for plot, summary, print.
  3. Switched from the package Rcpp to cpp11 for the backend. This removes a runtime dependency on Rcpp, but adds one on C++11 and adds a compile time dependency on cpp11.

Together, all this lead to many changes under the hood. As a consequence, permutation_test_builder is substantially different (and no longer exported), and order_stl no longer exists.


Each run of a *_test function now only sorts the data one time. Denoting the joint sample size N and the number of bootstraps K, this update moves the code from \(O(KN\log(N))\) to \(O(KN)+O(N \log(N))\).


There is now a ‘twosamples’ class, and generics for print, summary, and plot, as well as a function for combining outputs correctly. This should make the printed behavior much better. As well as making it easy to see a fair bit of information using summary.

Possible breaking changes

version 1.2.0

This version is primarily bug fixes and documentation updates. These bug fixes may affect outputs users see.


I expect this update to be purely cosmetic for the vast majority of users. - For a few users of ad_test or cvm_test it is possible that re-running code will make significant differences to conclusions. - For the rare users of ad_test or dts_test (aka two_sample) who relied on the scale of the test stat (rather than merely the p-value), this update will change outputs substantially. In principal this change is merely re-scaling everything by \((n^p)/(2^{p/2})\).

Main code changes:

Some documentation changes:

Some development oriented changes:

version 1.1.1

This update is only fixing up documentation. Fixes a bug that lead to poor formatting, improves formatting of equations, adds graphs for test statistics, adds links between help pages. See v1.1.0 for recent improvements to codebase.

version 1.1.0

This update is primarily fixing a bug which meant that the test stat sorting routine was O(N^2), not O(Nlog(N)).

Major Updates

Minor Updates

version 1.0.0

The package has been released. The package includes test statistic functions (written in C++) for the following two-sample distance measures:

Each test statistic also has a corresponding permutation test function.

In addition there are two functions: