Closed RobinHankin closed 3 years ago
Well it works now:
> x <- disord(runif(7))
> x[] <- 7
> x
A disord object with hash e05b0bed163e51952d2e6ae531a482e6c04881c8 and elements
[1] 7 7 7 7 7 7 7
(in some order)
>
. . . but it works too well:
> x <- disord(runif(7))
> x[] <- 1:7
> x
A disord object with hash 6191e4163f71705d374cdbfe065561f276604e6c and elements
[1] 1 2 3 4 5 6 7
(in some order)
>
The last line should return an error because the order is not specified.
Look:
The above idiom works fine. But:
. . . and it really should work. See also issue #3