- Test suite environments need to be passed via
local
argument ofsource
.
- Use
inherits(., *)
instead ofclass(.) == *
(R4 compat). - Make test suite compatible with tinytest package.
- Replace testthat with tinytest.
- Move test suite to
inst/test-suite
so that it can be used without--install-tests
. - Move example in README to
StringMatrix
vignette.
- Export
convertIndex
function.
- Fix incorrect index type determination when additional arguments were passed
to
extract()
andreplace()
. - Fix missing
...
pass-through for single indices inextract()
. - Throw an error if index type is not supported.
- The
length()
method must now be implemented in addition todim()
anddimnames()
for a matrix to be supported by crochet. One way to implementlength()
could belength.TYPE = function(x) prod(dim(x))
. - Add parameter
allowDoubles
to support huge matrices by not converting indices of type double to integers if the operation would overflow. Defaults toFALSE
to reduce the burden of implementing backends in statically typed languages. - Add
ktoij()
andijtok()
helper functions.
Initial release.