Open RobinHankin opened 3 years ago
This is discussed in the vignette, type vignette("sha1")
and there is a section Creating a sha1 method for other classes
The bug is triggered by the following simpler call:
> disord(disord(1:10))
Error: sha1() has no method for the 'disord' class
>
The obvious fix, viz:
`sha1.disord` <- function(x, digits = 4, zapsmall = 7) {
sha1(elements(x), digits = digits, zapsmall = zapsmall)
}
Does not work:
> disord(list(disord(1:2),disord(1:5)))
Error in sha1.disord(X[[i]], ...) : unused argument (algo = "sha1")
>
It should be possible to have a
disord
object which is a list whose elements are themselvesdisord
objects. But: